From 316ca23cabc9c6589100b38235b6b7c81e16f32b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Wed, 3 Apr 2024 16:44:18 +0200 Subject: [PATCH] vkh26xdec: remove unused variables Part-of: --- .../gst-plugins-bad/ext/vulkan/vkh264dec.c | 17 ----------------- .../gst-plugins-bad/ext/vulkan/vkh265dec.c | 17 ----------------- 2 files changed, 34 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/vulkan/vkh264dec.c b/subprojects/gst-plugins-bad/ext/vulkan/vkh264dec.c index 4ebc383393..c09fa4e5ef 100644 --- a/subprojects/gst-plugins-bad/ext/vulkan/vkh264dec.c +++ b/subprojects/gst-plugins-bad/ext/vulkan/vkh264dec.c @@ -59,9 +59,6 @@ struct _GstVulkanH264Decoder GstVulkanDecoder *decoder; - GstBuffer *inbuf; - GstMapInfo in_mapinfo; - gboolean need_negotiation; gboolean need_params_update; @@ -75,9 +72,6 @@ struct _GstVulkanH264Decoder VkChromaLocation xloc, yloc; GstVideoCodecState *output_state; - - GstBufferPool *dpb_pool; - GstBuffer *layered_dpb; }; static GstStaticPadTemplate gst_vulkan_h264dec_sink_template = @@ -186,10 +180,6 @@ gst_vulkan_h264_decoder_close (GstVideoDecoder * decoder) if (self->decoder) gst_vulkan_decoder_stop (self->decoder); - if (self->inbuf) - gst_buffer_unmap (self->inbuf, &self->in_mapinfo); - gst_clear_buffer (&self->inbuf); - if (self->output_state) gst_video_codec_state_unref (self->output_state); @@ -199,13 +189,6 @@ gst_vulkan_h264_decoder_close (GstVideoDecoder * decoder) gst_clear_object (&self->device); gst_clear_object (&self->instance); - if (self->dpb_pool) { - gst_buffer_pool_set_active (self->dpb_pool, FALSE); - gst_clear_object (&self->dpb_pool); - } - - gst_clear_buffer (&self->layered_dpb); - return TRUE; } diff --git a/subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.c b/subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.c index f1b2dde867..a5390e5a81 100644 --- a/subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.c +++ b/subprojects/gst-plugins-bad/ext/vulkan/vkh265dec.c @@ -60,9 +60,6 @@ struct _GstVulkanH265Decoder GstVulkanDecoder *decoder; - GstBuffer *inbuf; - GstMapInfo in_mapinfo; - gboolean need_negotiation; gboolean need_params_update; @@ -75,9 +72,6 @@ struct _GstVulkanH265Decoder VkChromaLocation xloc, yloc; GstVideoCodecState *output_state; - - GstBufferPool *dpb_pool; - GstBuffer *layered_dpb; }; static GstStaticPadTemplate gst_vulkan_h265dec_sink_template = @@ -244,10 +238,6 @@ gst_vulkan_h265_decoder_close (GstVideoDecoder * decoder) if (self->decoder) gst_vulkan_decoder_stop (self->decoder); - if (self->inbuf) - gst_buffer_unmap (self->inbuf, &self->in_mapinfo); - gst_clear_buffer (&self->inbuf); - if (self->output_state) gst_video_codec_state_unref (self->output_state); @@ -257,13 +247,6 @@ gst_vulkan_h265_decoder_close (GstVideoDecoder * decoder) gst_clear_object (&self->device); gst_clear_object (&self->instance); - if (self->dpb_pool) { - gst_buffer_pool_set_active (self->dpb_pool, FALSE); - gst_clear_object (&self->dpb_pool); - } - - gst_clear_buffer (&self->layered_dpb); - return TRUE; }