mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-05 15:08:48 +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/6787>
This commit is contained in:
parent
51fd0f16a3
commit
9db0b83aa1
2 changed files with 2 additions and 2 deletions
|
@ -197,7 +197,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
|
||||
|
|
|
@ -255,7 +255,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