mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
avauddec: Close context when it was opened
This commit is contained in:
parent
06de84c747
commit
9945ae7adc
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ gst_ffmpegauddec_close (GstFFMpegAudDec * ffmpegdec)
|
|||
|
||||
gst_caps_replace (&ffmpegdec->last_caps, NULL);
|
||||
|
||||
if (ffmpegdec->context->priv_data)
|
||||
if (ffmpegdec->opened)
|
||||
gst_ffmpeg_avcodec_close (ffmpegdec->context);
|
||||
ffmpegdec->opened = FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue