From 15938df46afcff909f7d04b4916b07e13c473232 Mon Sep 17 00:00:00 2001 From: Eunhae Choi Date: Tue, 10 Jul 2018 21:04:00 +0900 Subject: [PATCH] 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 --- plugins/elements/gstqueue2.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.7.4