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

This commit is contained in:
Sebastian Dröge 2010-06-16 19:30:25 +02:00
parent 8b2a6a8c74
commit 34d42e4ea3

View file

@ -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;
}