splitmuxsink: Allow time and bytes to reach their respective thresholds

https://bugzilla.gnome.org/show_bug.cgi?id=769664
This commit is contained in:
Vivia Nikolaidou 2016-08-09 20:16:16 +03:00 committed by Jan Schmidt
parent 0b0a042781
commit 369d37d227

View file

@ -902,9 +902,9 @@ handle_gathered_gop (GstSplitMuxSink * splitmux)
* either threshold? */
if ((splitmux->have_muxed_something &&
((splitmux->threshold_bytes > 0 &&
queued_bytes >= splitmux->threshold_bytes) ||
queued_bytes > splitmux->threshold_bytes) ||
(splitmux->threshold_time > 0 &&
queued_time >= splitmux->threshold_time)))) {
queued_time > splitmux->threshold_time)))) {
splitmux->state = SPLITMUX_STATE_ENDING_FILE;