splitmuxsink: Don't accumulate more than 2 GOPs
authorJan Schmidt <jan@centricular.com>
Wed, 29 Apr 2015 16:52:58 +0000 (02:52 +1000)
committerJan Schmidt <jan@centricular.com>
Mon, 8 Jun 2015 08:58:43 +0000 (18:58 +1000)
Don't allow large amounts of data to queue up - we only need
the GOP we're writing, and the GOP we're accumulating.

gst/multifile/gstsplitmuxsink.c

index 96f4d1d7053782f1dbd8fdfa5462105c4cba9a2c..6da34e3ab1c170ea53f22a6fcdd5592e48f3519b 100644 (file)
@@ -872,7 +872,7 @@ check_queue_length (GstSplitMuxSink * splitmux, MqStreamCtx * ctx)
         splitmux->queued_gops <= 1) {
       allow_grow = TRUE;
     } else if (splitmux->state == SPLITMUX_STATE_COLLECTING_GOP_START &&
-        ctx->is_video) {
+        ctx->is_video && splitmux->queued_gops <= 1) {
       allow_grow = TRUE;
     }