From 158c1f66026f173cb97cefc4cbc83347177f83ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 11 Jan 2023 15:06:58 +0200 Subject: [PATCH] gstreamer: Don't unnecessarily override `decide_allocation()` This avoids more optimal output buffer allocation. --- .../gst-plugins-bad/ext/svtav1/gstsvtav1enc.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c index 233b96e0be..854792e4d9 100644 --- a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c +++ b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c @@ -62,8 +62,6 @@ static gboolean gst_svtav1enc_sink_event (GstVideoEncoder * encoder, static gboolean gst_svtav1enc_src_event (GstVideoEncoder * encoder, GstEvent * event); static gboolean gst_svtav1enc_negotiate (GstVideoEncoder * encoder); -static gboolean gst_svtav1enc_decide_allocation (GstVideoEncoder * encoder, - GstQuery * query); static gboolean gst_svtav1enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query); static gboolean gst_svtav1enc_flush (GstVideoEncoder * encoder); @@ -180,8 +178,6 @@ gst_svtav1enc_class_init (GstSvtAv1EncClass * klass) GST_DEBUG_FUNCPTR (gst_svtav1enc_sink_event); video_encoder_class->src_event = GST_DEBUG_FUNCPTR (gst_svtav1enc_src_event); video_encoder_class->negotiate = GST_DEBUG_FUNCPTR (gst_svtav1enc_negotiate); - video_encoder_class->decide_allocation = - GST_DEBUG_FUNCPTR (gst_svtav1enc_decide_allocation); video_encoder_class->propose_allocation = GST_DEBUG_FUNCPTR (gst_svtav1enc_propose_allocation); video_encoder_class->flush = GST_DEBUG_FUNCPTR (gst_svtav1enc_flush); @@ -904,16 +900,6 @@ gst_svtav1enc_negotiate (GstVideoEncoder * encoder) GST_VIDEO_ENCODER_CLASS (gst_svtav1enc_parent_class)->negotiate(encoder); } -static gboolean -gst_svtav1enc_decide_allocation (GstVideoEncoder * encoder, GstQuery * query) -{ - GstSvtAv1Enc *svtav1enc = GST_SVTAV1ENC (encoder); - - GST_DEBUG_OBJECT (svtav1enc, "decide_allocation"); - - return TRUE; -} - static gboolean gst_svtav1enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query) {