multiqueue: consider the disable setting when check buffer full 74/116774/3
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 28 Feb 2017 07:37:16 +0000 (16:37 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Tue, 28 Feb 2017 08:03:34 +0000 (00:03 -0800)
If app set the max_size_time to zero,
it means app does not want to check buffer state based on time.

Change-Id: I3dce77547ebd47f58611bf8950b980a24870ba62

plugins/elements/gstmultiqueue.c

index 8c9b024..8eb0138 100644 (file)
@@ -2659,7 +2659,7 @@ compute_high_time (GstMultiQueue * mq)
      ((q)->max_size.format) <= (value))
 
 #ifdef TIZEN_FEATURE_MQ_MODIFICATION
-#define IS_FILLED_EXTRA(q, format, value) (((((q)->extra_size.format) != 0) || (((q)->max_size.format) != 0)) && \
+#define IS_FILLED_EXTRA(q, format, value) ((((q)->extra_size.format) != 0) && (((q)->max_size.format) != 0) && \
      (((q)->extra_size.format)+((q)->max_size.format)) <= (value))
 #endif
 /*