mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
rtph263ppay: plug caps leak
This commit is contained in:
parent
ecaa2624d3
commit
8f4bfeb698
1 changed files with 4 additions and 1 deletions
|
@ -247,9 +247,12 @@ gst_rtp_h263p_pay_sink_getcaps (GstRTPBasePayload * payload, GstPad * pad,
|
||||||
|
|
||||||
/* if we're just outputting to udpsink or fakesink or so, we should also
|
/* if we're just outputting to udpsink or fakesink or so, we should also
|
||||||
* accept any input compatible with our sink template caps */
|
* accept any input compatible with our sink template caps */
|
||||||
if (!peercaps || gst_caps_is_any (peercaps))
|
if (!peercaps || gst_caps_is_any (peercaps)) {
|
||||||
|
if (peercaps)
|
||||||
|
gst_caps_unref (peercaps);
|
||||||
return
|
return
|
||||||
gst_pad_get_pad_template_caps (GST_RTP_BASE_PAYLOAD_SINKPAD (payload));
|
gst_pad_get_pad_template_caps (GST_RTP_BASE_PAYLOAD_SINKPAD (payload));
|
||||||
|
}
|
||||||
|
|
||||||
/* We basically need to differentiate two use-cases here: One where there's
|
/* We basically need to differentiate two use-cases here: One where there's
|
||||||
* a capsfilter after the payloader with caps created from an SDP; in this
|
* a capsfilter after the payloader with caps created from an SDP; in this
|
||||||
|
|
Loading…
Reference in a new issue