summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-11-01 11:54:50 +0000
committerWim Taymans <wim.taymans@collabora.co.uk>2012-11-01 11:54:50 +0000
commit170521a30f6dad9ba9f0578517bc4310cf7c5dfc (patch)
treebc7eea2ffbedc5daee96abc21e16c0ca7a7d02dd
parentabef8ee9e4d6eb4ee8c20630d0291fe8fbc0fe82 (diff)
gstpay: set C flag on all buffers of the fragment
Set the C flags on all the fragments instead of only those with caps in them. This makes it easier in the receiver to check if there is a caps in the assembled fragments just by looking at the last RTP packet flags.
-rw-r--r--gst/rtp/gstrtpgstpay.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/rtp/gstrtpgstpay.c b/gst/rtp/gstrtpgstpay.c
index a2f0a3027..7b94a8e7b 100644
--- a/gst/rtp/gstrtpgstpay.c
+++ b/gst/rtp/gstrtpgstpay.c
@@ -209,6 +209,8 @@ gst_rtp_gst_pay_handle_buffer (GstBaseRTPPayload * basepayload,
GST_DEBUG_OBJECT (rtpgstpay, "sending inline caps");
rtpgstpay->next_CV++;
+
+ flags |= (1 << 7);
} else {
capslen_prefix_len = 0;
}
@@ -248,9 +250,6 @@ gst_rtp_gst_pay_handle_buffer (GstBaseRTPPayload * basepayload,
outbuf = gst_rtp_buffer_new_allocate (payload_len, 0, 0);
payload = gst_rtp_buffer_get_payload (outbuf);
- if (capslen > 0)
- flags |= (1 << 7);
-
GST_DEBUG_OBJECT (basepayload, "new packet len %u, frag %u", packet_len,
frag_offset);