basesrc: improve debugging
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 4 May 2010 09:45:02 +0000 (11:45 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 4 May 2010 09:45:02 +0000 (11:45 +0200)
libs/gst/base/gstbasesrc.c

index 401781f..c6d84dd 100644 (file)
@@ -927,6 +927,9 @@ gst_base_src_default_query (GstBaseSrc * src, GstQuery * query)
           seg_format = src->segment.format;
           GST_OBJECT_UNLOCK (src);
 
+          GST_LOG_OBJECT (src, "duration %" G_GINT64_FORMAT ", format %s",
+              duration, gst_format_get_name (seg_format));
+
           if (duration != -1) {
             /* convert to requested format, if this fails, we have a duration
              * but we cannot answer the query, we must return FALSE. */