mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 03:52:25 +00:00
glupload: Forward composition meta even without params
When the sink does not know the window size (e.g not created yet) it will not add any param to the the composition meta. This is no reason not to forward this meta API. Fixes issue where it could not attach until we resize the window. https://bugzilla.gnome.org/show_bug.cgi?id=745107
This commit is contained in:
parent
df7bcb6ba7
commit
4cf2d84315
1 changed files with 4 additions and 4 deletions
|
@ -161,10 +161,10 @@ _gst_gl_upload_element_propose_allocation (GstBaseTransform * bt,
|
||||||
/* read window size from decide_query */
|
/* read window size from decide_query */
|
||||||
gst_query_parse_nth_allocation_meta (decide_query, alloc_index, ¶ms);
|
gst_query_parse_nth_allocation_meta (decide_query, alloc_index, ¶ms);
|
||||||
|
|
||||||
if (params)
|
/* it does not matter if params are NULL (no known window size), forward
|
||||||
gst_query_add_allocation_meta (query,
|
* the meta in any case */
|
||||||
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, params);
|
gst_query_add_allocation_meta (query,
|
||||||
|
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_gl_upload_propose_allocation (upload->upload, decide_query, query);
|
gst_gl_upload_propose_allocation (upload->upload, decide_query, query);
|
||||||
|
|
Loading…
Reference in a new issue