mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ensure_kms_allocator (self);
|
||||||
|
|
||||||
kmsmem = (GstKMSMemory *) gst_kms_allocator_get_cached (mems[0]);
|
kmsmem = (GstKMSMemory *) gst_kms_allocator_get_cached (mems[0]);
|
||||||
if (kmsmem) {
|
if (kmsmem) {
|
||||||
GST_LOG_OBJECT (self, "found KMS mem %p in DMABuf mem %p with fb id = %d",
|
GST_LOG_OBJECT (self, "found KMS mem %p in DMABuf mem %p with fb id = %d",
|
||||||
|
|
Loading…
Reference in a new issue