From d00e97b7ea8f7e1f247b1d6a3cbad1d094ede750 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 4 May 2010 11:45:02 +0200 Subject: [PATCH] basesrc: improve debugging --- libs/gst/base/gstbasesrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/gst/base/gstbasesrc.c b/libs/gst/base/gstbasesrc.c index 401781f987..c6d84dd674 100644 --- a/libs/gst/base/gstbasesrc.c +++ b/libs/gst/base/gstbasesrc.c @@ -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. */