Commit dbdbcfe7 authored by Nicolas Dufresne's avatar Nicolas Dufresne Committed by GStreamer Merge Bot

v4l2videoenc: Fix negotiation caps leak

Part-of: <!649>
parent 4f555ecf
......@@ -548,6 +548,9 @@ gst_v4l2_video_enc_negotiate (GstVideoEncoder * encoder)
if (gst_caps_foreach (allowed_caps, negotiate_profile_and_level, &ctx)) {
goto no_profile_level;
}
gst_caps_unref (allowed_caps);
allowed_caps = NULL;
}
if (codec->profile_cid && !ctx.profile) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment