ximagesrc: Fix NULL pointer dereference when allocation of the ximage fails
This commit is contained in:
parent
8b2a6a8c74
commit
34d42e4ea3
@ -389,7 +389,8 @@ gst_ximage_src_ximage_get (GstXImageSrc * ximagesrc)
|
||||
(BufferReturnFunc) (gst_ximage_src_return_buf));
|
||||
if (ximage == NULL) {
|
||||
GST_ELEMENT_ERROR (ximagesrc, RESOURCE, WRITE, (NULL),
|
||||
("could not create a %dx%d ximage", ximage->width, ximage->height));
|
||||
("could not create a %dx%d ximage", ximagesrc->width,
|
||||
ximagesrc->height));
|
||||
g_mutex_unlock (ximagesrc->x_lock);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user