Add separate def for extra size time 46/159546/2 accepted/tizen/unified/20171121.061013 submit/tizen/20171117.072805
authorMichał Budzyński <m.budzynski@samsung.com>
Thu, 16 Nov 2017 11:38:39 +0000 (12:38 +0100)
committerMichał Budzyński <m.budzynski@samsung.com>
Thu, 16 Nov 2017 11:38:39 +0000 (12:38 +0100)
Change introduced in https://review.tizen.org/gerrit/gitweb?p=platform/upstream/gstreamer.git;a=commit;h=0f6f5b6bb99c366708bd05e33bc13fe40b25d955
makes buffering of video noticeably longer on our developed device. Proposed solution will make us able to turn this modification off
for profile specific to our device without forking gstreamer.

Change-Id: Ia03cab1e090d5fdbd15e2af53a29a3fd57b6cfcc
Signed-off-by: Krystian Kisielak <k.kisielak@samsung.com>
packaging/gstreamer.spec
plugins/elements/gstmultiqueue.c

index 8329a00956433444b3059cbcef092f426a5a2c1c..e1e5dd76067ac9cd96fc697b47261242464d3695 100644 (file)
@@ -69,6 +69,7 @@ export CFLAGS="%{optflags} \
        -DTIZEN_FEATURE_QUEUE2_MODIFICATION\
        -DTIZEN_FEATURE_FILESINK_MODIFICATION\
        -DTIZEN_FEATURE_MQ_MODIFICATION\
+       -DTIZEN_FEATURE_MQ_MODIFICATION_EXTRA_SIZE_TIME\
        -DTIZEN_FEATURE_BASEPARSE_MODIFICATION\
        -DTIZEN_FEATURE_QUEUE_MODIFICATION\
 %if "%{TIZEN_PRODUCT_TV}" == "1"
index 8eb013886b72d92abc3fec8e856628a800bd2497..904458ace3ddad3ffd015a9997d081bb6d6573b9 100644 (file)
@@ -268,7 +268,7 @@ enum
  * aditional extra size. */
 #define DEFAULT_EXTRA_SIZE_BYTES 10 * 1024 * 1024       /* 10 MB */
 #define DEFAULT_EXTRA_SIZE_BUFFERS 5
-#ifdef TIZEN_FEATURE_MQ_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION_EXTRA_SIZE_TIME
 #define DEFAULT_EXTRA_SIZE_TIME 10 * GST_SECOND
 #else
 #define DEFAULT_EXTRA_SIZE_TIME 3 * GST_SECOND
@@ -2658,7 +2658,7 @@ compute_high_time (GstMultiQueue * mq)
 #define IS_FILLED(q, format, value) (((q)->max_size.format) != 0 && \
      ((q)->max_size.format) <= (value))
 
-#ifdef TIZEN_FEATURE_MQ_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION_EXTRA_SIZE_TIME
 #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
@@ -2795,7 +2795,7 @@ single_queue_check_full (GstDataQueue * dataq, guint visible, guint bytes,
     return TRUE;
 
   /* check time or bytes */
-#ifdef TIZEN_FEATURE_MQ_MODIFICATION
+#ifdef TIZEN_FEATURE_MQ_MODIFICATION_EXTRA_SIZE_TIME
   res = IS_FILLED_EXTRA (sq, time, sq->cur_time) || IS_FILLED (sq, bytes, bytes);
 #else
   res = IS_FILLED (sq, time, sq->cur_time) || IS_FILLED (sq, bytes, bytes);