diff options
author | Jan David Mol <j.j.d.mol@tudelft.nl> | 2006-11-14 11:54:14 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-11-14 11:54:14 +0000 |
commit | d24ad6ac0ac348355b8b6ba69fafe62c1c28b09e (patch) | |
tree | c9f888230fc0fcfbcd633f348475d2c0cccde45c /sys | |
parent | cadc881165acee92dd8bcb67cb6ae444ea66c7ec (diff) |
Various gsize and gssize printf fixes. Fixes #372507.
Original commit message from CVS:
Patch by: Jan David Mol <j dot j dot d dot mol at tudelft dot nl>
* gst-libs/gst/riff/riff-read.c: (gst_riff_parse_strf_auds),
(gst_riff_parse_strf_iavs):
* gst/subparse/gstsubparse.c: (convert_encoding):
* gst/tcp/gstmultifdsink.c:
(gst_multi_fd_sink_handle_client_write):
* gst/tcp/gsttcp.c: (gst_tcp_socket_write), (gst_tcp_socket_read),
(gst_tcp_read_buffer), (gst_tcp_gdp_read_caps),
(gst_tcp_gdp_write_buffer), (gst_tcp_gdp_write_caps):
* gst/tcp/gsttcpclientsink.c: (gst_tcp_client_sink_render):
* sys/ximage/ximagesink.c: (gst_ximagesink_check_xshm_calls),
(gst_ximagesink_ximage_new):
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_xvimage_new):
Various gsize and gssize printf fixes. Fixes #372507.
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; } |