qtdemux: don't use ininitialized var in debug log statement

Also make the log statement useful by printing the human readable format name.
This commit is contained in:
Stefan Kost 2009-03-31 16:22:42 +03:00
parent f4f6d9799c
commit 0889ac1092

View file

@ -962,6 +962,8 @@ gst_qtdemux_do_seek (GstQTDemux * qtdemux, GstPad * pad, GstEvent * event)
if (!gst_qtdemux_convert_seek (pad, &format, cur_type, &cur,
stop_type, &stop))
goto no_format;
GST_DEBUG_OBJECT (qtdemux, "seek format %s", gst_format_get_name (format));
} else {
GST_DEBUG_OBJECT (qtdemux, "doing seek without event");
flags = 0;
@ -969,8 +971,6 @@ gst_qtdemux_do_seek (GstQTDemux * qtdemux, GstPad * pad, GstEvent * event)
flush = flags & GST_SEEK_FLAG_FLUSH;
GST_DEBUG_OBJECT (qtdemux, "seek format %d", format);
/* stop streaming, either by flushing or by pausing the task */
if (flush) {
/* unlock upstream pull_range */