From 6a90d772eec6fa230ece2725937dff00e8a2e8ca Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Wed, 2 Dec 2015 14:33:35 +0900 Subject: [PATCH] multiqueue: update buffering if the high threshold is changed Change-Id: Iba197aa88b5ca331d789b0465063f3afb93a1a02 --- packaging/gstreamer.spec | 3 ++- plugins/elements/gstmultiqueue.c | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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); -- 2.7.4