From 8eb07d4fddea9c13b645b979ab0fd3408f3e44d4 Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Thu, 14 Jun 2018 18:52:51 +0900 Subject: [PATCH] multiqueue: disable buffering mode when the state is changed to playing if application set the state to playing during buffering the mq can not detect the data underflow after, because it keeps the previous buffering level information. Change-Id: I1cfd47bd7a5862b820d4244550a59395e1b2c89e --- plugins/elements/gstmultiqueue.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index b8cc9fd..b9ec4b5 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -1239,6 +1239,16 @@ gst_multi_queue_change_state (GstElement * element, GstStateChange transition) break; } +#ifdef TIZEN_FEATURE_MQ_MODIFICATION + /* to stop buffering during playing state */ + case GST_STATE_CHANGE_PAUSED_TO_PLAYING:{ + GST_MULTI_QUEUE_MUTEX_LOCK (mqueue); + mqueue->buffering = FALSE; + GST_MULTI_QUEUE_MUTEX_UNLOCK (mqueue); + gst_multi_queue_post_buffering (mqueue); + break; + } +#endif case GST_STATE_CHANGE_PAUSED_TO_READY:{ GList *tmp; -- 2.7.4