multiqueue: update buffering if the high threshold is changed 41/53141/1 accepted/tizen/mobile/20151202.230153 accepted/tizen/tv/20151202.230212 accepted/tizen/wearable/20151202.230230 submit/tizen/20151202.053915
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 2 Dec 2015 05:33:35 +0000 (14:33 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 2 Dec 2015 05:33:35 +0000 (14:33 +0900)
Change-Id: Iba197aa88b5ca331d789b0465063f3afb93a1a02

packaging/gstreamer.spec
plugins/elements/gstmultiqueue.c

index e6a4a65..660cc89 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:           gstreamer
 Version:        1.6.1
-Release:        1
+Release:        2
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.1+
 Group:          Multimedia/Framework
@@ -71,6 +71,7 @@ NOCONFIGURE=1 ./autogen.sh
 export CFLAGS="%{optflags} \
        -DGST_QUEUE2_MODIFICATION\
        -DGST_EXT_CURRENT_BYTES\
+       -DGST_TIZEN_MODIFICATION\
        -fno-strict-aliasing"
 
 %configure\
index 479db52..bca53e6 100644 (file)
@@ -602,6 +602,13 @@ gst_multi_queue_set_property (GObject * object, guint prop_id,
       break;
     case PROP_HIGH_PERCENT:
       mq->high_percent = g_value_get_int (value);
+
+#ifdef GST_TIZEN_MODIFICATION
+      if (mq->buffering) {
+        mq->percent_changed = TRUE;
+        gst_multi_queue_post_buffering (mq);
+      }
+#endif
       break;
     case PROP_SYNC_BY_RUNNING_TIME:
       mq->sync_by_running_time = g_value_get_boolean (value);