xvimage: fix crash when outputting debug log
authorTim-Philipp Müller <tim@centricular.com>
Sun, 10 Aug 2014 16:27:14 +0000 (17:27 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 10 Aug 2014 16:27:14 +0000 (17:27 +0100)
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

index 3aa1a82..c14a165 100644 (file)
@@ -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,