mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
Fix destructor, av_parser_close() does destroy the struct already, unliker avcodec_close()...
This commit is contained in:
parent
4350de601b
commit
6a3b05dbca
1 changed files with 3 additions and 2 deletions
|
@ -248,8 +248,10 @@ gst_vaapi_decoder_ffmpeg_close(GstVaapiDecoderFfmpeg *ffdecoder)
|
|||
avcodec_close(priv->avctx);
|
||||
}
|
||||
|
||||
if (priv->pctx)
|
||||
if (priv->pctx) {
|
||||
av_parser_close(priv->pctx);
|
||||
priv->pctx = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -305,7 +307,6 @@ gst_vaapi_decoder_ffmpeg_destroy(GstVaapiDecoderFfmpeg *ffdecoder)
|
|||
}
|
||||
|
||||
av_freep(&priv->avctx);
|
||||
av_freep(&priv->pctx);
|
||||
av_freep(&priv->frame);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue