mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rtpvorbispay: Don't send headers twice if we got them from the caps already
This commit is contained in:
parent
967280df42
commit
0915d696c7
1 changed files with 8 additions and 2 deletions
|
@ -761,8 +761,14 @@ gst_rtp_vorbis_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
|||
ret = GST_FLOW_OK;
|
||||
goto done;
|
||||
} else if (rtpvorbispay->headers) {
|
||||
if (!gst_rtp_vorbis_pay_finish_headers (basepayload))
|
||||
goto header_error;
|
||||
if (rtpvorbispay->need_headers) {
|
||||
if (!gst_rtp_vorbis_pay_finish_headers (basepayload))
|
||||
goto header_error;
|
||||
} else {
|
||||
g_list_free_full (rtpvorbispay->headers,
|
||||
(GDestroyNotify) gst_buffer_unref);
|
||||
rtpvorbispay->headers = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* there is a config request, see if we need to insert it */
|
||||
|
|
Loading…
Reference in a new issue