mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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:
parent
a285f7126b
commit
d960a25a19
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue