mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
x11: improve allocation parameters
Set the min-buffers to 2 because our base class will hold on to 1 buffer for the last-buffer property.
This commit is contained in:
parent
e461ab46d4
commit
8750aea364
2 changed files with 4 additions and 2 deletions
|
@ -1482,7 +1482,8 @@ gst_ximagesink_sink_query (GstPad * sinkpad, GstQuery * query)
|
|||
if (!gst_buffer_pool_set_config (pool, config))
|
||||
goto config_failed;
|
||||
}
|
||||
gst_query_set_allocation_params (query, size, 0, 0, 0, 15, pool);
|
||||
/* we need at least 2 buffer because we hold on to the last one */
|
||||
gst_query_set_allocation_params (query, size, 2, 0, 0, 15, pool);
|
||||
|
||||
/* we also support various metadata */
|
||||
gst_query_add_allocation_meta (query, GST_META_API_VIDEO);
|
||||
|
|
|
@ -1996,7 +1996,8 @@ gst_xvimagesink_sink_query (GstPad * sinkpad, GstQuery * query)
|
|||
if (!gst_buffer_pool_set_config (pool, config))
|
||||
goto config_failed;
|
||||
}
|
||||
gst_query_set_allocation_params (query, size, 0, 0, 0, 15, pool);
|
||||
/* we need at least 2 buffer because we hold on to the last one */
|
||||
gst_query_set_allocation_params (query, size, 2, 0, 0, 15, pool);
|
||||
|
||||
/* we also support various metadata */
|
||||
gst_query_add_allocation_meta (query, GST_META_API_VIDEO);
|
||||
|
|
Loading…
Reference in a new issue