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:
Nicolas Dufresne 2015-07-22 16:58:12 -04:00
parent e310e6d540
commit 4f4aedecf3

View file

@ -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, &params);
if (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);