From a92a64ae673a792bba36bc9e32df2c82dd536462 Mon Sep 17 00:00:00 2001 From: Michael Tretter Date: Thu, 13 Jul 2023 16:27:05 +0200 Subject: [PATCH] v4l2videoenc: remove empty sink_query The sink_query() function simply calls the sink_query() function of the parent videoencoder class. Remove the override to simply directly call the parent's function. Part-of: --- .../gst-plugins-good/sys/v4l2/gstv4l2videoenc.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c index 00ab481a3e..b311bd227e 100644 --- a/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c +++ b/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c @@ -1021,20 +1021,6 @@ gst_v4l2_video_enc_src_query (GstVideoEncoder * encoder, GstQuery * query) return ret; } -static gboolean -gst_v4l2_video_enc_sink_query (GstVideoEncoder * encoder, GstQuery * query) -{ - gboolean ret = TRUE; - - switch (GST_QUERY_TYPE (query)) { - default: - ret = GST_VIDEO_ENCODER_CLASS (parent_class)->sink_query (encoder, query); - break; - } - - return ret; -} - static gboolean gst_v4l2_video_enc_sink_event (GstVideoEncoder * encoder, GstEvent * event) { @@ -1168,8 +1154,6 @@ gst_v4l2_video_enc_class_init (GstV4l2VideoEncClass * klass) GST_DEBUG_FUNCPTR (gst_v4l2_video_enc_decide_allocation); video_encoder_class->propose_allocation = GST_DEBUG_FUNCPTR (gst_v4l2_video_enc_propose_allocation); - video_encoder_class->sink_query = - GST_DEBUG_FUNCPTR (gst_v4l2_video_enc_sink_query); video_encoder_class->src_query = GST_DEBUG_FUNCPTR (gst_v4l2_video_enc_src_query); video_encoder_class->sink_event =