Commit d5df9762 authored by gb's avatar gb Committed by Gwenole Beauchesne

Fix a crash in the FFmpeg decoder on close.

parent 748aac0f
......@@ -3,6 +3,7 @@ Copyright (C) 2010 Splitted-Desktop Systems
Version 0.2.2 - DD.May.2010
* Fix packaging dependencies
* Fix a crash in the FFmpeg decoder on close
* Fix OpenGL texture internal format (Clutter)
* Fix foreign window size for embedding (Totem)
......
......@@ -295,7 +295,8 @@ gst_vaapi_decoder_ffmpeg_close(GstVaapiDecoderFfmpeg *ffdecoder)
GstVaapiDecoderFfmpegPrivate * const priv = ffdecoder->priv;
if (priv->avctx) {
avcodec_close(priv->avctx);
if (priv->is_opened)
avcodec_close(priv->avctx);
av_freep(&priv->avctx->extradata);
priv->avctx->extradata_size = 0;
}
......
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