mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
avvidenc: plug input_state leak
This commit is contained in:
parent
423d9dcd71
commit
1aa253cd3b
1 changed files with 4 additions and 0 deletions
|
@ -859,6 +859,10 @@ gst_ffmpegvidenc_stop (GstVideoEncoder * encoder)
|
|||
g_free (ffmpegenc->working_buf);
|
||||
ffmpegenc->working_buf = NULL;
|
||||
}
|
||||
if (ffmpegenc->input_state) {
|
||||
gst_video_codec_state_unref (ffmpegenc->input_state);
|
||||
ffmpegenc->input_state = NULL;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue