multiqueue: include time criteria to check buffer level 66/221066/1 accepted/tizen/5.0/unified/20200106.075337 submit/tizen_5.0/20191227.015710
authorEunhye Choi <eunhae1.choi@samsung.com>
Fri, 27 Dec 2019 01:36:24 +0000 (10:36 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Fri, 27 Dec 2019 01:43:20 +0000 (01:43 +0000)
if the bytes is disabled,
time should be used to check buffer level.

Change-Id: I55983123cf20c8a5c81ce037ccdd02cf53041ac9
(cherry picked from commit d42819df610436da4fcc4ab3e193a543a634d870)

plugins/elements/gstmultiqueue.c

index d9270ac6153da37b71a4094d9f164c7b13707817..36bcaccecbe60a46fcf42a52c920f965efe8b4fc 100644 (file)
@@ -3354,6 +3354,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) {
@@ -3366,8 +3367,6 @@ single_queue_check_full (GstDataQueue * dataq, guint visible, guint bytes,
     } else
       res |= IS_FILLED (sq, time, sq->cur_time);
   }
-
-#endif
   return res;
 }