mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
avidemux: tweak DEFAULT format duration query response
This commit is contained in:
parent
14fe651b15
commit
436a85ac8a
1 changed files with 1 additions and 1 deletions
|
@ -573,7 +573,7 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstQuery * query)
|
||||||
GST_DEBUG_OBJECT (query, "total frames is %" G_GUINT32_FORMAT,
|
GST_DEBUG_OBJECT (query, "total frames is %" G_GUINT32_FORMAT,
|
||||||
stream->idx_n);
|
stream->idx_n);
|
||||||
|
|
||||||
if (stream->idx_n >= 0)
|
if (stream->idx_n > 0)
|
||||||
gst_query_set_duration (query, fmt, stream->idx_n);
|
gst_query_set_duration (query, fmt, stream->idx_n);
|
||||||
else if (gst_pad_query_convert (pad, GST_FORMAT_TIME,
|
else if (gst_pad_query_convert (pad, GST_FORMAT_TIME,
|
||||||
duration, &fmt, &dur))
|
duration, &fmt, &dur))
|
||||||
|
|
Loading…
Reference in a new issue