mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
asfdemux: Allow at least 500ms of preroll.
Some files have insanely low preroll values which break the all_streams_prerolled() logic. Fixes #622407
This commit is contained in:
parent
49f1373f1b
commit
5ac4ea3f1b
1 changed files with 2 additions and 1 deletions
|
@ -1112,7 +1112,8 @@ all_streams_prerolled (GstASFDemux * demux)
|
|||
GstClockTime preroll_time;
|
||||
guint i, num_no_data = 0;
|
||||
|
||||
preroll_time = demux->preroll;
|
||||
/* Allow at least 500ms of preroll_time */
|
||||
preroll_time = MAX(demux->preroll, 500 * GST_MSECOND);
|
||||
|
||||
/* returns TRUE as long as there isn't a stream which (a) has data queued
|
||||
* and (b) the timestamp of last piece of data queued is < demux->preroll
|
||||
|
|
Loading…
Reference in a new issue