mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
kmssink: Ensure we have an allocator before importing
This fixes cases where the kms allocator API was called with a null pointer.
This commit is contained in:
parent
44322b1dfc
commit
a83e0036ea
1 changed files with 2 additions and 0 deletions
|
@ -1403,6 +1403,8 @@ gst_kms_sink_import_dmabuf (GstKMSSink * self, GstBuffer * inbuf,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
ensure_kms_allocator (self);
|
||||
|
||||
kmsmem = (GstKMSMemory *) gst_kms_allocator_get_cached (mems[0]);
|
||||
if (kmsmem) {
|
||||
GST_LOG_OBJECT (self, "found KMS mem %p in DMABuf mem %p with fb id = %d",
|
||||
|
|
Loading…
Reference in a new issue