splitmuxsink: Allow time and bytes to reach their respective thresholds
authorVivia Nikolaidou <vivia@ahiru.eu>
Tue, 9 Aug 2016 17:16:16 +0000 (20:16 +0300)
committerJan Schmidt <jan@centricular.com>
Wed, 17 Aug 2016 07:42:55 +0000 (17:42 +1000)
https://bugzilla.gnome.org/show_bug.cgi?id=769664

gst/multifile/gstsplitmuxsink.c

index ee5f9a7..98f744f 100644 (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;