summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-08-10 17:27:14 +0100
committerTim-Philipp Müller <tim@centricular.com>2014-08-10 17:27:14 +0100
commitd960a25a19025c76f2b79928c7437c5b112bf9cb (patch)
tree318acd18b25f8b9c57fca1b55fc1dfc9c9496a2b /sys
parenta285f7126b0af08d59a8dc7a14461e1ea6a76706 (diff)
downloadgst-plugins-base-d960a25a19025c76f2b79928c7437c5b112bf9cb.tar.gz
gst-plugins-base-d960a25a19025c76f2b79928c7437c5b112bf9cb.tar.xz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/xvimage/xvimageallocator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/xvimage/xvimageallocator.c b/sys/xvimage/xvimageallocator.c
index 3aa1a8222..c14a165e8 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,