From: Eunhae Choi Date: Tue, 10 Jul 2018 12:04:00 +0000 (+0900) Subject: queue2: disable buffering mode when the state is changed to playing X-Git-Tag: accepted/tizen/unified/20180720.060659^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=15938df46afcff909f7d04b4916b07e13c473232;p=platform%2Fupstream%2Fgstreamer.git queue2: disable buffering mode when the state is changed to playing make not to post buffering msg after application set the state to playing during buffering. Change-Id: I9c621a1a7308222d8c94fb8c25d2a9d1cb2b3e42 --- diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 4cdd635..3c543a6 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -3832,6 +3832,11 @@ gst_queue2_change_state (GstElement * element, GstStateChange transition) GST_QUEUE2_MUTEX_UNLOCK (queue); break; case GST_STATE_CHANGE_PAUSED_TO_PLAYING: +#ifdef TIZEN_FEATURE_QUEUE2_MODIFICATION + GST_QUEUE2_MUTEX_LOCK (queue); + queue->is_buffering = FALSE; + GST_QUEUE2_MUTEX_UNLOCK (queue); +#endif break; default: break;