mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 02:58:24 +00:00
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.
This commit is contained in:
parent
d78ff07f7d
commit
8a402e0c06
1 changed files with 2 additions and 3 deletions
|
@ -198,6 +198,8 @@ gst_rtp_gst_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (rtpgstpay, "sending inline caps");
|
GST_DEBUG_OBJECT (rtpgstpay, "sending inline caps");
|
||||||
rtpgstpay->next_CV++;
|
rtpgstpay->next_CV++;
|
||||||
|
|
||||||
|
flags |= (1 << 7);
|
||||||
} else {
|
} else {
|
||||||
capslen_prefix_len = 0;
|
capslen_prefix_len = 0;
|
||||||
}
|
}
|
||||||
|
@ -243,9 +245,6 @@ gst_rtp_gst_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
||||||
gst_rtp_buffer_map (outbuf, GST_MAP_WRITE, &rtp);
|
gst_rtp_buffer_map (outbuf, GST_MAP_WRITE, &rtp);
|
||||||
payload = gst_rtp_buffer_get_payload (&rtp);
|
payload = gst_rtp_buffer_get_payload (&rtp);
|
||||||
|
|
||||||
if (capslen > 0)
|
|
||||||
flags |= (1 << 7);
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (basepayload, "new packet len %u, frag %u", packet_len,
|
GST_DEBUG_OBJECT (basepayload, "new packet len %u, frag %u", packet_len,
|
||||||
frag_offset);
|
frag_offset);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue