mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
gstreamer: Don't unnecessarily override decide_allocation()
This avoids more optimal output buffer allocation.
This commit is contained in:
parent
3b3e862580
commit
158c1f6602
1 changed files with 0 additions and 14 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue