Commit 34d42e4e authored by Sebastian Dröge's avatar Sebastian Dröge

ximagesrc: Fix NULL pointer dereference when allocation of the ximage fails

parent 8b2a6a8c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment