Fix a crash in the FFmpeg decoder on close.

This commit is contained in:
gb 2010-05-13 21:27:43 +00:00 committed by Gwenole Beauchesne
parent 748aac0fc5
commit d5df97625e
2 changed files with 3 additions and 1 deletions

1
NEWS
View file

@ -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)

View file

@ -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;
}