From d42819df610436da4fcc4ab3e193a543a634d870 Mon Sep 17 00:00:00 2001 From: Eunhye Choi Date: Fri, 27 Dec 2019 10:36:24 +0900 Subject: [PATCH 1/1] multiqueue: include time criteria to check buffer level if the bytes is disabled, time should be used to check buffer level. Change-Id: I55983123cf20c8a5c81ce037ccdd02cf53041ac9 --- plugins/elements/gstmultiqueue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 393f788..d13a62a 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -2950,6 +2950,7 @@ single_queue_check_full (GstDataQueue * dataq, guint visible, guint bytes, res = IS_FILLED_EXTRA (sq, time, sq->cur_time) || IS_FILLED (sq, bytes, bytes); #else res = IS_FILLED (sq, bytes, bytes); +#endif /* We only care about limits in time if we're not a sparse stream or * we're not syncing by running time */ if (!sq->is_sparse || !mq->sync_by_running_time) { @@ -2962,8 +2963,6 @@ single_queue_check_full (GstDataQueue * dataq, guint visible, guint bytes, } else res |= IS_FILLED (sq, time, sq->cur_time); } - -#endif return res; } -- 2.7.4