mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
vorbispay: Only replace headers when receiving a new config header
If we also replace all headers when receiving any possibly following comments header, we would throw away the config header before being able to make use of it.
This commit is contained in:
parent
e6bd2a5c18
commit
f44314c029
1 changed files with 2 additions and 2 deletions
|
@ -780,10 +780,10 @@ gst_rtp_vorbis_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
|||
|
||||
/* we need to collect the headers and construct a config string from them */
|
||||
if (VDT != 0) {
|
||||
if (!rtpvorbispay->need_headers) {
|
||||
if (!rtpvorbispay->need_headers && VDT == 1) {
|
||||
GST_INFO_OBJECT (rtpvorbispay, "getting new headers, replace existing");
|
||||
g_list_free_full (rtpvorbispay->headers,
|
||||
(GDestroyNotify) gst_buffer_unref);
|
||||
(GDestroyNotify) gst_buffer_unref);
|
||||
rtpvorbispay->headers = NULL;
|
||||
rtpvorbispay->need_headers = TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue