queue2: If the buffering mode is LIVE and buffering, the buffer is not pushed. 69/182669/1 accepted/tizen_4.0_unified tizen_4.0 accepted/tizen/4.0/unified/20180628.130524 submit/tizen_4.0/20180627.045253
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 26 Jun 2018 06:19:03 +0000 (15:19 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Wed, 27 Jun 2018 04:07:20 +0000 (04:07 +0000)
Change-Id: Ic9d95bc28685730d6ea4354f4d4dae4932c2e675
(cherry picked from commit 0f092efe2f7d460c7d5a5e64bf37cbeca8e4860b)

plugins/elements/gstqueue2.c

index ae6e8bbc08e3ec93adbfbcbdc9833049d2b586e2..595d412b881ec90a6f2ca5d9b674ac2010c68ef1 100644 (file)
@@ -2963,7 +2963,8 @@ gst_queue2_loop (GstPad * pad)
       g_timer_continue (queue->out_timer);
   }
 #ifdef TIZEN_FEATURE_RTSPSRC_MODIFICATION
-  if (!queue->is_buffering) {
+  /* if buffering mode is GST_BUFFERING_LIVE, it is rtsp streaming */
+  if (!((queue->mode == GST_BUFFERING_LIVE) && queue->is_buffering)) {
     ret = gst_queue2_push_one (queue);
   }
 #else