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
@ -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…
x
Reference in New Issue
Block a user