[Bug 684970] New: gstreamer should not register printf extension for %p (when glib is not using system printf)

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Sep 27 07:58:35 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=684970
  GStreamer | gstreamer (core) | 0.10.x

           Summary: gstreamer should not register printf extension for %p
                    (when glib is not using system printf)
    Classification: Platform
           Product: GStreamer
           Version: 0.10.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: gnome at blino.org
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


When glib is not using system printf (for example because of cross-compiling),
GST_PTR_FORMAT and GST_SEGMENT_FORMAT are treated as %p, and gstreamer
registers printf extension for %p.

This makes the gst_debug_print_object() and gst_debug_print_segment() functions
used for non-gstreamer pointers, which adds unwanted noise and might cause
crashes.

For example, one of the printed buffers was:
"(UNKNOWN FORMAT) segment start=-8986651587677525817,
stop=-8554493194617018172, last_stop=-8266075641072286327,
duration=-4574732532129505147, 
rate=-3626863689479878938904782173163905590178431100605762255667210473813800398360107786053895142044412504296993872288236077413970321962819959315348145132423779585400591425209157819378414119919209350855297714353438982144,000000, 
applied_rate=-48436681163436340997291685650079652259319042717347306007053140329870037350394997846865381518445307426814439657062771779825257203634031670770196847698236380743907090556812267407477392563779785636276928602475251940303853479777526438859375605270275832111547881103749549026229834576222699343669305377030144,000000,
flags=0x89ec458b, time=0:11:31.162663141, accum=1461167:52:39.316507976"

gstreamer should not register printf extension when GLIB_USING_SYSTEM_PRINTF is
not set.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list