From d960a25a19025c76f2b79928c7437c5b112bf9cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 10 Aug 2014 17:27:14 +0100 Subject: [PATCH] xvimage: fix crash when outputting debug log Can't print a GstMemory via GST_PTR_FORMAT, it will crash inside GObject checking if it's a GObject, and we can't check generically whether it's a derived GstMemory type, as boxed types don't allowe derivation. --- sys/xvimage/xvimageallocator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/xvimage/xvimageallocator.c b/sys/xvimage/xvimageallocator.c index 3aa1a82..c14a165 100644 --- a/sys/xvimage/xvimageallocator.c +++ b/sys/xvimage/xvimageallocator.c @@ -625,9 +625,9 @@ gst_xvimage_memory_render (GstXvImageMemory * mem, GstVideoRectangle * src_crop, } #ifdef HAVE_XSHM if (context->use_xshm) { - GST_LOG ("XvShmPutImage with image %dx%d and window %dx%d, from xvimage %" - GST_PTR_FORMAT, src_crop->w, src_crop->h, - window->render_rect.w, window->render_rect.h, mem); + GST_LOG ("XvShmPutImage with image %dx%d and window %dx%d, from xvimage %p", + src_crop->w, src_crop->h, window->render_rect.w, window->render_rect.h, + mem); XvShmPutImage (context->disp, context->xv_port_id, -- 2.7.4