mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +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
e310e6d540
commit
4f4aedecf3
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 */
|
||||
gst_query_parse_nth_allocation_meta (decide_query, alloc_index, ¶ms);
|
||||
|
||||
if (params)
|
||||
gst_query_add_allocation_meta (query,
|
||||
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, params);
|
||||
|
||||
/* it does not matter if params are NULL (no known window size), forward
|
||||
* the meta in any case */
|
||||
gst_query_add_allocation_meta (query,
|
||||
GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE, params);
|
||||
}
|
||||
|
||||
gst_gl_upload_propose_allocation (upload->upload, decide_query, query);
|
||||
|
|
Loading…
Reference in a new issue