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:
Stéphane Cerveau 2024-04-30 18:08:27 +02:00 committed by GStreamer Marge Bot
parent dd3344fd2e
commit 10ce5a6857
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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