From: Eunhae Choi Date: Wed, 2 Dec 2015 05:33:35 +0000 (+0900) Subject: multiqueue: update buffering if the high threshold is changed X-Git-Tag: accepted/tizen/mobile/20151202.230153^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6a90d772eec6fa230ece2725937dff00e8a2e8ca;p=platform%2Fupstream%2Fgstreamer.git multiqueue: update buffering if the high threshold is changed Change-Id: Iba197aa88b5ca331d789b0465063f3afb93a1a02 --- diff --git a/packaging/gstreamer.spec b/packaging/gstreamer.spec index e6a4a65..660cc89 100644 --- a/packaging/gstreamer.spec +++ b/packaging/gstreamer.spec @@ -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\ diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 479db52..bca53e6 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -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);