mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
uploadelement: Protect against NULL pointer
I notice that if you stop the pipeline during a renegotiation the upload may be NULL while an allocation query is being run. In that scenario, returning FALSE to the allocation query is the best thing.
This commit is contained in:
parent
fecef40463
commit
04beac6e0f
1 changed files with 3 additions and 0 deletions
|
@ -145,6 +145,9 @@ _gst_gl_upload_element_propose_allocation (GstBaseTransform * bt,
|
|||
{
|
||||
GstGLUploadElement *upload = GST_GL_UPLOAD_ELEMENT (bt);
|
||||
|
||||
if (!upload->upload)
|
||||
return FALSE;
|
||||
|
||||
gst_gl_upload_propose_allocation (upload->upload, decide_query, query);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue