avidemux: tweak DEFAULT format duration query response

This commit is contained in:
Mark Nauwelaerts 2012-01-20 16:54:06 +01:00
parent 14fe651b15
commit 436a85ac8a

View file

@ -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))