From 0889ac109222296bc463711c907e484bd4dee218 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 31 Mar 2009 16:22:42 +0300 Subject: qtdemux: don't use ininitialized var in debug log statement Also make the log statement useful by printing the human readable format name. --- gst/qtdemux/qtdemux.c | 4 ++-- 1 file 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 */ -- cgit v1.2.3