queue2: disable buffering mode when the state is changed to playing 44/183744/1 accepted/tizen/unified/20180720.060659 submit/tizen/20180719.054941
authorEunhae Choi <eunhae1.choi@samsung.com>
Tue, 10 Jul 2018 12:04:00 +0000 (21:04 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Tue, 10 Jul 2018 12:04:07 +0000 (21:04 +0900)
make not to post buffering msg
after application set the state to playing during buffering.

Change-Id: I9c621a1a7308222d8c94fb8c25d2a9d1cb2b3e42

plugins/elements/gstqueue2.c

index 4cdd635..3c543a6 100644 (file)
@@ -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;