rtph26xpay: Avoid print when there is no bundle at end of packet
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 26 Jun 2019 20:42:44 +0000 (16:42 -0400)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Wed, 3 Jul 2019 19:05:29 +0000 (19:05 +0000)
gst/rtp/gstrtph264pay.c
gst/rtp/gstrtph265pay.c

index 4dce2b8..93f44c7 100644 (file)
@@ -1629,7 +1629,7 @@ gst_rtp_h264_pay_handle_buffer (GstRTPBasePayload * basepayload,
     g_array_set_size (nal_queue, 0);
   }
 
-  if (ret == GST_FLOW_OK &&
+  if (ret == GST_FLOW_OK && rtph264pay->bundle_size > 0 &&
       rtph264pay->aggregate_mode == GST_RTP_H264_AGGREGATE_ZERO_LATENCY &&
       rtph264pay->bundle_contains_vcl) {
     GST_DEBUG_OBJECT (rtph264pay, "sending bundle at end incoming packet");
index 3e46d29..3769acb 100644 (file)
@@ -1648,7 +1648,7 @@ gst_rtp_h265_pay_handle_buffer (GstRTPBasePayload * basepayload,
     g_array_set_size (nal_queue, 0);
   }
 
-  if (ret == GST_FLOW_OK &&
+  if (ret == GST_FLOW_OK && rtph265pay->bundle_size > 0 &&
       rtph265pay->aggregate_mode == GST_RTP_H265_AGGREGATE_ZERO_LATENCY &&
       rtph265pay->bundle_contains_vcl) {
     GST_DEBUG_OBJECT (rtph265pay, "sending bundle at end incoming packet");