mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
vkh26xdec: Fix stop memory leak
The h26xdecoder 'stop' method was not called as the vulkan h26x class rewires the video decoder 'stop' base method to its own one. It was causing some memory leaks such as dangling parser and dpb in h26xdecoder base class. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6782>
This commit is contained in:
parent
dd3344fd2e
commit
10ce5a6857
2 changed files with 2 additions and 2 deletions
|
@ -198,7 +198,7 @@ gst_vulkan_h264_decoder_stop (GstVideoDecoder * decoder)
|
|||
if (self->output_state)
|
||||
gst_video_codec_state_unref (self->output_state);
|
||||
|
||||
return TRUE;
|
||||
return GST_VIDEO_DECODER_CLASS (parent_class)->stop (decoder);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -256,7 +256,7 @@ gst_vulkan_h265_decoder_stop (GstVideoDecoder * decoder)
|
|||
if (self->output_state)
|
||||
gst_video_codec_state_unref (self->output_state);
|
||||
|
||||
return TRUE;
|
||||
return GST_VIDEO_DECODER_CLASS (parent_class)->stop (decoder);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue