summaryrefslogtreecommitdiff
authorStefan Kost <ensonic@users.sf.net>2009-03-31 13:22:42 (GMT)
committer Stefan Kost <ensonic@users.sf.net>2009-03-31 13:22:42 (GMT)
commit0889ac109222296bc463711c907e484bd4dee218 (patch) (side-by-side diff)
treed4f6946247d02ccae7ad79dedeeec91c6a4fb164
parentf4f6d9799ca51aa47ca4c0ed67cfb966890ec463 (diff)
downloadgst-plugins-good-0889ac109222296bc463711c907e484bd4dee218.zip
gst-plugins-good-0889ac109222296bc463711c907e484bd4dee218.tar.gz
qtdemux: don't use ininitialized var in debug log statement
Also make the log statement useful by printing the human readable format name.
Diffstat (more/less context) (ignore whitespace changes)
-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 079ae1a..7ff8d68 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 */