mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
vorbispay: always collect headers on data
When we see a data packet, always check if we need to collect any previous headers.
This commit is contained in:
parent
6c716dfc25
commit
3169432ed4
1 changed files with 4 additions and 1 deletions
|
@ -161,6 +161,9 @@ gst_rtp_vorbis_pay_setcaps (GstRTPBasePayload * basepayload, GstCaps * caps)
|
||||||
goto null_buffer;
|
goto null_buffer;
|
||||||
|
|
||||||
gst_buffer_map (buf, &map, GST_MAP_READ);
|
gst_buffer_map (buf, &map, GST_MAP_READ);
|
||||||
|
if (map.size < 1)
|
||||||
|
goto invalid_streamheader;
|
||||||
|
|
||||||
/* no data packets allowed */
|
/* no data packets allowed */
|
||||||
if ((map.data[0] & 1) == 0)
|
if ((map.data[0] & 1) == 0)
|
||||||
goto invalid_streamheader;
|
goto invalid_streamheader;
|
||||||
|
@ -608,7 +611,7 @@ gst_rtp_vorbis_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
||||||
rtpvorbispay->headers = g_list_append (rtpvorbispay->headers, buffer);
|
rtpvorbispay->headers = g_list_append (rtpvorbispay->headers, buffer);
|
||||||
ret = GST_FLOW_OK;
|
ret = GST_FLOW_OK;
|
||||||
goto done;
|
goto done;
|
||||||
} else if (rtpvorbispay->need_headers) {
|
} else if (rtpvorbispay->headers) {
|
||||||
if (!gst_rtp_vorbis_pay_finish_headers (basepayload))
|
if (!gst_rtp_vorbis_pay_finish_headers (basepayload))
|
||||||
goto header_error;
|
goto header_error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue