multiqueue: include time criteria to check buffer level 63/221063/1 accepted/tizen/unified/20191230.050133 submit/tizen/20191227.015629
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 27 Dec 2019 01:36:24 +0000 (10:36 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 27 Dec 2019 01:36:38 +0000 (10:36 +0900)
if the bytes is disabled,
time should be used to check buffer level.

Change-Id: I55983123cf20c8a5c81ce037ccdd02cf53041ac9

plugins/elements/gstmultiqueue.c

index 393f788..d13a62a 100644 (file)
@@ -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;
 }