[0.11] gst-plugins-good: avidemux: tweak DEFAULT format duration query response

Sebastian Dröge slomo at kemper.freedesktop.org
Wed Jan 25 03:50:25 PST 2012


Module: gst-plugins-good
Branch: 0.11
Commit: 436a85ac8a9289ab205a51000deaf27717621657
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=436a85ac8a9289ab205a51000deaf27717621657

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Fri Jan 20 16:54:06 2012 +0100

avidemux: tweak DEFAULT format duration query response

---

 gst/avi/gstavidemux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c
index b6c065f..43096ff 100644
--- a/gst/avi/gstavidemux.c
+++ b/gst/avi/gstavidemux.c
@@ -573,7 +573,7 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstQuery * query)
           GST_DEBUG_OBJECT (query, "total frames is %" G_GUINT32_FORMAT,
               stream->idx_n);
 
-          if (stream->idx_n >= 0)
+          if (stream->idx_n > 0)
             gst_query_set_duration (query, fmt, stream->idx_n);
           else if (gst_pad_query_convert (pad, GST_FORMAT_TIME,
                   duration, &fmt, &dur))



More information about the gstreamer-commits mailing list