diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ximage/ximagesink.c | 9 | ||||
-rw-r--r-- | sys/xvimage/xvimagesink.c | 6 |
2 files changed, 10 insertions, 5 deletions
diff --git a/sys/ximage/ximagesink.c b/sys/ximage/ximagesink.c index 16ffcf96..bd24a1d6 100644 --- a/sys/ximage/ximagesink.c +++ b/sys/ximage/ximagesink.c @@ -345,7 +345,8 @@ gst_ximagesink_check_xshm_calls (GstXImageSink * ximagesink, SHMInfo.shmid = shmget (IPC_PRIVATE, size, IPC_CREAT | 0777); if (SHMInfo.shmid == -1) { - GST_WARNING ("could not get shared memory of %d bytes", size); + GST_WARNING ("could not get shared memory of %" G_GSIZE_FORMAT " bytes", + size); goto beach; } @@ -439,7 +440,8 @@ gst_ximagesink_ximage_new (GstXImageSink * ximagesink, GstCaps * caps) /* we have to use the returned bytes_per_line for our shm size */ ximage->size = ximage->ximage->bytes_per_line * ximage->ximage->height; - GST_LOG_OBJECT (ximagesink, "XShm image size is %d, width %d, stride %d", + GST_LOG_OBJECT (ximagesink, + "XShm image size is %" G_GSIZE_FORMAT ", width %d, stride %d", ximage->size, ximage->width, ximage->ximage->bytes_per_line); ximage->SHMInfo.shmid = shmget (IPC_PRIVATE, ximage->size, @@ -449,7 +451,8 @@ gst_ximagesink_ximage_new (GstXImageSink * ximagesink, GstCaps * caps) GST_ELEMENT_ERROR (ximagesink, RESOURCE, WRITE, ("Failed to create output image buffer of %dx%d pixels", ximage->width, ximage->height), - ("could not get shared memory of %d bytes", ximage->size)); + ("could not get shared memory of %" G_GSIZE_FORMAT " bytes", + ximage->size)); goto beach; } diff --git a/sys/xvimage/xvimagesink.c b/sys/xvimage/xvimagesink.c index 4f52f31b..84205f6e 100644 --- a/sys/xvimage/xvimagesink.c +++ b/sys/xvimage/xvimagesink.c @@ -547,7 +547,8 @@ gst_xvimagesink_xvimage_new (GstXvImageSink * xvimagesink, GstCaps * caps) /* we have to use the returned data_size for our shm size */ xvimage->size = xvimage->xvimage->data_size; - GST_LOG_OBJECT (xvimagesink, "XShm image size is %d", xvimage->size); + GST_LOG_OBJECT (xvimagesink, "XShm image size is %" G_GSIZE_FORMAT, + xvimage->size); xvimage->SHMInfo.shmid = shmget (IPC_PRIVATE, xvimage->size, IPC_CREAT | 0777); @@ -556,7 +557,8 @@ gst_xvimagesink_xvimage_new (GstXvImageSink * xvimagesink, GstCaps * caps) GST_ELEMENT_ERROR (xvimagesink, RESOURCE, WRITE, ("Failed to create output image buffer of %dx%d pixels", xvimage->width, xvimage->height), - ("could not get shared memory of %d bytes", xvimage->size)); + ("could not get shared memory of %" G_GSIZE_FORMAT " bytes", + xvimage->size)); goto beach_unlocked; } |