From: Eunhae Choi Date: Thu, 14 Jun 2018 09:52:51 +0000 (+0900) Subject: multiqueue: disable buffering mode when the state is changed to playing X-Git-Tag: accepted/tizen/unified/20180626.140820^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8eb07d4fddea9c13b645b979ab0fd3408f3e44d4;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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;