mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-12 19:14:16 +00:00
rtpvp8pay, rtpvp9pay: fix caps leak in set_caps()
This commit is contained in:
parent
5a893f2a95
commit
81a87c26f9
2 changed files with 2 additions and 0 deletions
gst/rtp
|
@ -531,6 +531,7 @@ gst_rtp_vp8_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
|
|||
if (!gst_value_can_intersect (&default_value, value))
|
||||
encoding_name = "VP8-DRAFT-IETF-01";
|
||||
}
|
||||
gst_caps_unref (src_caps);
|
||||
}
|
||||
|
||||
gst_rtp_base_payload_set_options (payload, "video", TRUE,
|
||||
|
|
|
@ -546,6 +546,7 @@ gst_rtp_vp9_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
|
|||
if (!gst_value_can_intersect (&default_value, value))
|
||||
encoding_name = "VP9-DRAFT-IETF-01";
|
||||
}
|
||||
gst_caps_unref (src_caps);
|
||||
}
|
||||
|
||||
gst_rtp_base_payload_set_options (payload, "video", TRUE,
|
||||
|
|
Loading…
Reference in a new issue