mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
gluploadelement: also set the context in decide_allocation
If downstream doesn't perform allocation queries, the context would never be set and criticals would occur.
This commit is contained in:
parent
22373acee3
commit
5518eb26fb
1 changed files with 6 additions and 0 deletions
|
@ -194,6 +194,12 @@ static gboolean
|
|||
_gst_gl_upload_element_decide_allocation (GstBaseTransform * trans,
|
||||
GstQuery * query)
|
||||
{
|
||||
GstGLUploadElement *upload = GST_GL_UPLOAD_ELEMENT (trans);
|
||||
GstGLContext *context = GST_GL_BASE_FILTER (trans)->context;
|
||||
|
||||
if (upload->upload && context)
|
||||
gst_gl_upload_set_context (upload->upload, context);
|
||||
|
||||
return
|
||||
GST_BASE_TRANSFORM_CLASS
|
||||
(gst_gl_upload_element_parent_class)->decide_allocation (trans, query);
|
||||
|
|
Loading…
Reference in a new issue