mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
gl/filter: fixup passthrough bufferpool
In a pipeline like so: videotestsrc ! gleffects ! videoconvert ! sink gleffects was simply passing the videoconvert bufferpool to videotestsrc and not creating a glbufferpool. videobufferpool would then fail to allocate from the glallocator.
This commit is contained in:
parent
313dfbb500
commit
9cfd5e5d04
1 changed files with 2 additions and 1 deletions
|
@ -840,7 +840,8 @@ gst_gl_filter_propose_allocation (GstBaseTransform * trans,
|
|||
|
||||
gst_query_parse_allocation (decide_query, &decide_caps, NULL);
|
||||
decide_pool = gst_base_transform_get_buffer_pool (trans);
|
||||
if (gst_caps_is_equal_fixed (decide_caps, caps)) {
|
||||
if (GST_IS_GL_BUFFER_POOL (decide_pool)
|
||||
&& gst_caps_is_equal_fixed (decide_caps, caps)) {
|
||||
pool = decide_pool;
|
||||
} else {
|
||||
GST_DEBUG_OBJECT (filter, "create new pool");
|
||||
|
|
Loading…
Reference in a new issue