Commit df751194 authored by David Schleef's avatar David Schleef
Browse files

ext/ffmpeg/gstffmpegenc.c: Fix use of already-freed caps.

Original commit message from CVS:
* ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_connect): Fix use of
already-freed caps.
parent 8a6c344d
......@@ -370,8 +370,10 @@ gst_ffmpegenc_connect (GstPad *pad,
* function. */
if (!gst_pad_set_explicit_caps (ffmpegenc->srcpad, icaps)) {
avcodec_close (ffmpegenc->context);
gst_caps_free (icaps);
return GST_PAD_LINK_REFUSED;
}
gst_caps_free (icaps);
/* success! */
ffmpegenc->opened = TRUE;
......
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