mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
rtph263ppay: Unref pad template caps after use
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734435
This commit is contained in:
parent
1fa61632fe
commit
276269d956
1 changed files with 4 additions and 2 deletions
|
@ -184,8 +184,10 @@ gst_rtp_h263p_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
|
|||
peercaps =
|
||||
gst_pad_peer_query_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload), NULL);
|
||||
if (peercaps) {
|
||||
GstCaps *intersect = gst_caps_intersect (peercaps,
|
||||
gst_pad_get_pad_template_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload)));
|
||||
GstCaps *tcaps =
|
||||
gst_pad_get_pad_template_caps (GST_RTP_BASE_PAYLOAD_SRCPAD (payload));
|
||||
GstCaps *intersect = gst_caps_intersect (peercaps, tcaps);
|
||||
gst_caps_unref (tcaps);
|
||||
|
||||
gst_caps_unref (peercaps);
|
||||
if (!gst_caps_is_empty (intersect)) {
|
||||
|
|
Loading…
Reference in a new issue