diff options
Diffstat (limited to 'sys/nvenc/gstnvbaseenc.c')
-rw-r--r-- | sys/nvenc/gstnvbaseenc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/nvenc/gstnvbaseenc.c b/sys/nvenc/gstnvbaseenc.c index 3d991bafb..4749c477a 100644 --- a/sys/nvenc/gstnvbaseenc.c +++ b/sys/nvenc/gstnvbaseenc.c @@ -513,6 +513,11 @@ gst_nv_base_enc_stop (GstVideoEncoder * enc) gst_nv_base_enc_free_buffers (nvenc); + if (nvenc->input_state) { + gst_video_codec_state_unref (nvenc->input_state); + nvenc->input_state = NULL; + } + if (nvenc->bitstream_pool) { g_async_queue_unref (nvenc->bitstream_pool); nvenc->bitstream_pool = NULL; |