mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
Fix a crash in the FFmpeg decoder on close.
This commit is contained in:
parent
748aac0fc5
commit
d5df97625e
2 changed files with 3 additions and 1 deletions
1
NEWS
1
NEWS
|
@ -3,6 +3,7 @@ Copyright (C) 2010 Splitted-Desktop Systems
|
||||||
|
|
||||||
Version 0.2.2 - DD.May.2010
|
Version 0.2.2 - DD.May.2010
|
||||||
* Fix packaging dependencies
|
* Fix packaging dependencies
|
||||||
|
* Fix a crash in the FFmpeg decoder on close
|
||||||
* Fix OpenGL texture internal format (Clutter)
|
* Fix OpenGL texture internal format (Clutter)
|
||||||
* Fix foreign window size for embedding (Totem)
|
* Fix foreign window size for embedding (Totem)
|
||||||
|
|
||||||
|
|
|
@ -295,7 +295,8 @@ gst_vaapi_decoder_ffmpeg_close(GstVaapiDecoderFfmpeg *ffdecoder)
|
||||||
GstVaapiDecoderFfmpegPrivate * const priv = ffdecoder->priv;
|
GstVaapiDecoderFfmpegPrivate * const priv = ffdecoder->priv;
|
||||||
|
|
||||||
if (priv->avctx) {
|
if (priv->avctx) {
|
||||||
avcodec_close(priv->avctx);
|
if (priv->is_opened)
|
||||||
|
avcodec_close(priv->avctx);
|
||||||
av_freep(&priv->avctx->extradata);
|
av_freep(&priv->avctx->extradata);
|
||||||
priv->avctx->extradata_size = 0;
|
priv->avctx->extradata_size = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue