mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-16 21:14:44 +00:00
x264enc: Don't set an allocation maximum
There is no reason x264enc should enforce a maximum allocation size. The maximum is normally set by buffer pool which cannot grow, but we don't offer a buffer pool. This would lead to stall when used with element that don't implement allocation query. Related to: https://bugzilla.gnome.org/show_bug.cgi?id=738302
This commit is contained in:
parent
ad43a4de43
commit
acc9529a36
1 changed files with 1 additions and 2 deletions
|
@ -1932,8 +1932,7 @@ gst_x264_enc_propose_allocation (GstVideoEncoder * encoder, GstQuery * query)
|
|||
info = &self->input_state->info;
|
||||
num_buffers = x264_encoder_maximum_delayed_frames (self->x264enc) + 1;
|
||||
|
||||
gst_query_add_allocation_pool (query, NULL, info->size, num_buffers,
|
||||
num_buffers);
|
||||
gst_query_add_allocation_pool (query, NULL, info->size, num_buffers, 0);
|
||||
|
||||
return GST_VIDEO_ENCODER_CLASS (parent_class)->propose_allocation (encoder,
|
||||
query);
|
||||
|
|
Loading…
Reference in a new issue