After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 520152 - Core uses non-portable size_t and ssize_t
Core uses non-portable size_t and ssize_t
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.10.18
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 520151 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-03-03 18:37 UTC by Edward Hervey
Modified: 2008-03-03 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixe for gstreamer/gst (3.29 KB, patch)
2008-03-03 18:37 UTC, Edward Hervey
committed Details | Review
Fixes for gstreamer/plugins (2.21 KB, patch)
2008-03-03 18:38 UTC, Edward Hervey
committed Details | Review

Description Edward Hervey 2008-03-03 18:37:27 UTC
code in GStreamer should not use size_t/ssize_t because they are not portable on all platform.

Instead, it should be using gsize (for size_t) and gssize (for ssize_t).
Comment 1 Edward Hervey 2008-03-03 18:37:59 UTC
Created attachment 106500 [details] [review]
Fixe for gstreamer/gst
Comment 2 Edward Hervey 2008-03-03 18:38:23 UTC
Created attachment 106501 [details] [review]
Fixes for gstreamer/plugins
Comment 3 Edward Hervey 2008-03-03 18:43:06 UTC
2008-03-03  Edward Hervey  <edward.hervey@collabora.co.uk>

        * gst/gstregistrybinary.c: (gst_registry_binary_write),
        (gst_registry_binary_read_cache):
        * gst/gstregistryxml.c: (gst_registry_save):
        * gst/gsturi.c: (unescape_string), (gst_uri_has_protocol):
        * plugins/elements/gstfilesink.c: (gst_file_sink_open_file):
        * plugins/elements/gstfilesrc.c: (gst_file_src_map_region),
        (gst_file_src_map_small_region), (gst_file_src_create_mmap):
        Switch to using portabl gsize/gssize instead of size_t/ssize_t
        Fixes #520152

Comment 4 Edward Hervey 2008-03-03 18:43:38 UTC
*** Bug 520151 has been marked as a duplicate of this bug. ***