summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-03-31 16:22:42 +0300
committerStefan Kost <ensonic@users.sf.net>2009-03-31 16:22:42 +0300
commit0889ac109222296bc463711c907e484bd4dee218 (patch)
treed4f6946247d02ccae7ad79dedeeec91c6a4fb164
parentf4f6d9799ca51aa47ca4c0ed67cfb966890ec463 (diff)
qtdemux: don't use ininitialized var in debug log statement
Also make the log statement useful by printing the human readable format name.
-rw-r--r--gst/qtdemux/qtdemux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c
index 079ae1a25..7ff8d6804 100644
--- a/gst/qtdemux/qtdemux.c
+++ b/gst/qtdemux/qtdemux.c
@@ -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 */