mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
video-filter: Support allocation pool with pool object
This is used to indicate upstream the requirement in buffers while no buffer pool can be provided. In this case, only configure the pool with caps/size/min/max if we have caps, which we only parsed when there was no allocation pool. https://bugzilla.gnome.org/show_bug.cgi?id=730758
This commit is contained in:
parent
5d3d764568
commit
5d6fbcb0af
1 changed files with 3 additions and 0 deletions
|
@ -128,6 +128,9 @@ gst_video_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query)
|
|||
if (gst_query_get_n_allocation_pools (query) > 0) {
|
||||
gst_query_parse_nth_allocation_pool (query, 0, &pool, &size, &min, &max);
|
||||
|
||||
if (!pool)
|
||||
gst_query_parse_allocation (query, &outcaps, NULL);
|
||||
|
||||
update_pool = TRUE;
|
||||
} else {
|
||||
GstVideoInfo vinfo;
|
||||
|
|
Loading…
Reference in a new issue