mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
avidemux: Fix duration reporting in push mode
https://bugzilla.gnome.org/show_bug.cgi?id=700933
This commit is contained in:
parent
89a3dc2ecd
commit
1fbb6d30a6
1 changed files with 2 additions and 1 deletions
|
@ -521,7 +521,8 @@ gst_avi_demux_handle_src_query (GstPad * pad, GstObject * parent,
|
|||
|
||||
/* take stream duration, fall back to avih duration */
|
||||
if ((duration = stream->duration) == -1)
|
||||
duration = avi->duration;
|
||||
if ((duration = stream->hdr_duration) == -1)
|
||||
duration = avi->duration;
|
||||
|
||||
gst_query_parse_duration (query, &fmt, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue