From d78502deb1ada98b688cfd473bdcd7d6b4b092e2 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 30 Apr 2015 02:52:58 +1000 Subject: [PATCH] splitmuxsink: Don't accumulate more than 2 GOPs 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/multifile/gstsplitmuxsink.c b/gst/multifile/gstsplitmuxsink.c index 96f4d1d705..6da34e3ab1 100644 --- a/gst/multifile/gstsplitmuxsink.c +++ b/gst/multifile/gstsplitmuxsink.c @@ -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; }