queue2: If the buffering mode is LIVE and buffering, the buffer is not pushed. 55/182555/3
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 26 Jun 2018 06:19:03 +0000 (15:19 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 26 Jun 2018 07:13:58 +0000 (16:13 +0900)
Change-Id: Ic9d95bc28685730d6ea4354f4d4dae4932c2e675

plugins/elements/gstqueue2.c

index ca873ad..4cdd635 100644 (file)
@@ -3204,7 +3204,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