mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
v4l2videoenc: Fix negotiation caps leak
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/649>
This commit is contained in:
parent
4f555ecf8e
commit
dbdbcfe7ff
1 changed files with 3 additions and 0 deletions
|
@ -548,6 +548,9 @@ gst_v4l2_video_enc_negotiate (GstVideoEncoder * encoder)
|
||||||
if (gst_caps_foreach (allowed_caps, negotiate_profile_and_level, &ctx)) {
|
if (gst_caps_foreach (allowed_caps, negotiate_profile_and_level, &ctx)) {
|
||||||
goto no_profile_level;
|
goto no_profile_level;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gst_caps_unref (allowed_caps);
|
||||||
|
allowed_caps = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (codec->profile_cid && !ctx.profile) {
|
if (codec->profile_cid && !ctx.profile) {
|
||||||
|
|
Loading…
Reference in a new issue