[gst-devel] Incorrect messages from GST_DEBUG.

wl2776 wl2776 at gmail.com
Tue May 18 15:57:06 CEST 2010


I have these statements:

GstFormat fmt=GST_FORMAT_TIME;
gint m_direction=1;
gdouble rate;
gint64 start=-1,stop=-1;

GST_DEBUG("current segment: rate %lf fmt %d start %d stop %d direction %d",
                    rate,fmt,start,stop,m_direction);
GST_DEBUG("m_direction=%d",m_direction);


They produce the output:
0:00:08.522254000  2840   0412AFC0 DEBUG                 player
gst_player.cpp:342:gst_player::bus_watch: current segment: rate 1.000000 fmt
3 start 0 stop 0 direction -1
0:00:08.522254000  2840   0412AFC0 DEBUG                 player
gst_player.cpp:343:gst_player::bus_watch: m_direction=1

The difference in the m_direction. It is -1 in the first GST_DEBUG and 1 in
the second one.
1 is the correct value, as shown in the debugger.
-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Incorrect-messages-from-GST-DEBUG-tp2221319p2221319.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list