diff options
Diffstat (limited to 'ext/ffmpeg/gstffmpegenc.c')
-rw-r--r-- | ext/ffmpeg/gstffmpegenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index fe10c22..adfc197 100644 --- a/ext/ffmpeg/gstffmpegenc.c +++ b/ext/ffmpeg/gstffmpegenc.c @@ -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; |