mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-22 02:13:46 +00:00
rtptheorapay: Don't send headers twice if we got them from the caps already
This commit is contained in:
parent
d105de6e0f
commit
d585bd7bbd
1 changed files with 8 additions and 2 deletions
|
@ -771,8 +771,14 @@ gst_rtp_theora_pay_handle_buffer (GstRTPBasePayload * basepayload,
|
||||||
ret = GST_FLOW_OK;
|
ret = GST_FLOW_OK;
|
||||||
goto done;
|
goto done;
|
||||||
} else if (rtptheorapay->headers) {
|
} else if (rtptheorapay->headers) {
|
||||||
|
if (rtptheorapay->need_headers) {
|
||||||
if (!gst_rtp_theora_pay_finish_headers (basepayload))
|
if (!gst_rtp_theora_pay_finish_headers (basepayload))
|
||||||
goto header_error;
|
goto header_error;
|
||||||
|
} else {
|
||||||
|
g_list_free_full (rtptheorapay->headers,
|
||||||
|
(GDestroyNotify) gst_buffer_unref);
|
||||||
|
rtptheorapay->headers = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* there is a config request, see if we need to insert it */
|
/* there is a config request, see if we need to insert it */
|
||||||
|
|
Loading…
Reference in a new issue