mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 22:12:34 +00:00
Improve previous fix.
This commit is contained in:
parent
d5df97625e
commit
0fb0c49dbb
1 changed files with 3 additions and 1 deletions
|
@ -295,8 +295,10 @@ gst_vaapi_decoder_ffmpeg_close(GstVaapiDecoderFfmpeg *ffdecoder)
|
|||
GstVaapiDecoderFfmpegPrivate * const priv = ffdecoder->priv;
|
||||
|
||||
if (priv->avctx) {
|
||||
if (priv->is_opened)
|
||||
if (priv->is_opened) {
|
||||
avcodec_close(priv->avctx);
|
||||
priv->is_opened = FALSE;
|
||||
}
|
||||
av_freep(&priv->avctx->extradata);
|
||||
priv->avctx->extradata_size = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue