mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
glupload: Don't throw assertions on invalid allocation query
basesrc can send an allocation query with no caps, in which case we should just fail it without throwing assertions.
This commit is contained in:
parent
575c7bca40
commit
79f52a4943
1 changed files with 2 additions and 0 deletions
|
@ -324,6 +324,8 @@ _gl_memory_upload_propose_allocation (gpointer impl, GstQuery * decide_query,
|
|||
GstCapsFeatures *features;
|
||||
|
||||
gst_query_parse_allocation (query, &caps, NULL);
|
||||
if (caps == NULL)
|
||||
goto invalid_caps;
|
||||
features = gst_caps_get_features (caps, 0);
|
||||
|
||||
/* Only offer our custom allocator if that type of memory was negotiated. */
|
||||
|
|
Loading…
Reference in a new issue