mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
Use G_GSIZE_FORMAT in print statements for portability.
Original commit message from CVS: * gst/multipart/multipartmux.c: (gst_multipart_mux_collected): * sys/ximage/ximageutil.c: (ximageutil_check_xshm_calls): Use G_GSIZE_FORMAT in print statements for portability. Fixes build on macosx.
This commit is contained in:
parent
85420195b2
commit
d7666d033c
3 changed files with 13 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-01-25 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
|
* gst/multipart/multipartmux.c: (gst_multipart_mux_collected):
|
||||||
|
* sys/ximage/ximageutil.c: (ximageutil_check_xshm_calls):
|
||||||
|
Use G_GSIZE_FORMAT in print statements for portability.
|
||||||
|
Fixes build on macosx.
|
||||||
|
|
||||||
2007-01-24 Wim Taymans <wim@fluendo.com>
|
2007-01-24 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/rtp/Makefile.am:
|
* gst/rtp/Makefile.am:
|
||||||
|
|
|
@ -494,7 +494,8 @@ gst_multipart_mux_collected (GstCollectPads * pads, GstMultipartMux * mux)
|
||||||
GST_BUFFER_OFFSET (headerbuf) = mux->offset;
|
GST_BUFFER_OFFSET (headerbuf) = mux->offset;
|
||||||
mux->offset += headerlen;
|
mux->offset += headerlen;
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (mux, "pushing %u bytes header buffer", headerlen);
|
GST_DEBUG_OBJECT (mux, "pushing %" G_GSIZE_FORMAT " bytes header buffer",
|
||||||
|
headerlen);
|
||||||
ret = gst_pad_push (mux->srcpad, headerbuf);
|
ret = gst_pad_push (mux->srcpad, headerbuf);
|
||||||
if (ret != GST_FLOW_OK)
|
if (ret != GST_FLOW_OK)
|
||||||
/* push always takes ownership of the buffer, even after an error, so we
|
/* push always takes ownership of the buffer, even after an error, so we
|
||||||
|
@ -552,7 +553,8 @@ no_caps:
|
||||||
}
|
}
|
||||||
alloc_failed:
|
alloc_failed:
|
||||||
{
|
{
|
||||||
GST_WARNING_OBJECT (mux, "failed allocating a %d bytes buffer", headerlen);
|
GST_WARNING_OBJECT (mux,
|
||||||
|
"failed allocating a %" G_GSIZE_FORMAT " bytes buffer", headerlen);
|
||||||
g_free (header);
|
g_free (header);
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,7 +78,8 @@ ximageutil_check_xshm_calls (GstXContext * xcontext)
|
||||||
|
|
||||||
SHMInfo.shmid = shmget (IPC_PRIVATE, size, IPC_CREAT | 0777);
|
SHMInfo.shmid = shmget (IPC_PRIVATE, size, IPC_CREAT | 0777);
|
||||||
if (SHMInfo.shmid == -1) {
|
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;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue