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.
This commit is contained in:
Tim-Philipp Müller 2014-08-10 17:27:14 +01:00
parent a285f7126b
commit d960a25a19

View file

@ -625,9 +625,9 @@ gst_xvimage_memory_render (GstXvImageMemory * mem, GstVideoRectangle * src_crop,
} }
#ifdef HAVE_XSHM #ifdef HAVE_XSHM
if (context->use_xshm) { if (context->use_xshm) {
GST_LOG ("XvShmPutImage with image %dx%d and window %dx%d, from xvimage %" GST_LOG ("XvShmPutImage with image %dx%d and window %dx%d, from xvimage %p",
GST_PTR_FORMAT, src_crop->w, src_crop->h, src_crop->w, src_crop->h, window->render_rect.w, window->render_rect.h,
window->render_rect.w, window->render_rect.h, mem); mem);
XvShmPutImage (context->disp, XvShmPutImage (context->disp,
context->xv_port_id, context->xv_port_id,