directfb: printf format fixes

This commit is contained in:
Tim-Philipp Müller 2009-11-05 21:44:51 +00:00
parent cf481210e8
commit c3ee4820e6

View file

@ -270,8 +270,8 @@ gst_dfbvideosink_surface_create (GstDfbVideoSink * dfbvideosink, GstCaps * caps,
or we are going to run into serious stride issues */ or we are going to run into serious stride issues */
if (GST_BUFFER_SIZE (surface) != size) { if (GST_BUFFER_SIZE (surface) != size) {
GST_WARNING_OBJECT (dfbvideosink, "DirectFB surface size (%dx%d=%d) " GST_WARNING_OBJECT (dfbvideosink, "DirectFB surface size (%dx%d=%d) "
"differs from GStreamer requested size %d", pitch, surface->height, "differs from GStreamer requested size %u", pitch, surface->height,
GST_BUFFER_SIZE (surface), size); GST_BUFFER_SIZE (surface), (guint) size);
goto fallback; goto fallback;
} }
@ -298,8 +298,8 @@ fallback:
surface->surface->Release (surface->surface); surface->surface->Release (surface->surface);
surface->surface = NULL; surface->surface = NULL;
} }
GST_DEBUG_OBJECT (dfbvideosink, "allocating a buffer (%p) of %d bytes", GST_DEBUG_OBJECT (dfbvideosink, "allocating a buffer (%p) of %u bytes",
surface, size); surface, (guint) size);
succeeded = TRUE; succeeded = TRUE;
@ -694,7 +694,7 @@ gst_dfbvideosink_setup (GstDfbVideoSink * dfbvideosink)
GstColorBalanceChannel *channel = NULL; GstColorBalanceChannel *channel = NULL;
GST_DEBUG_OBJECT (dfbvideosink, "adding %s as a colorbalance channel", GST_DEBUG_OBJECT (dfbvideosink, "adding %s as a colorbalance channel",
walk->data); (const char *) walk->data);
channel = g_object_new (GST_TYPE_COLOR_BALANCE_CHANNEL, NULL); channel = g_object_new (GST_TYPE_COLOR_BALANCE_CHANNEL, NULL);
channel->label = g_strdup (walk->data); channel->label = g_strdup (walk->data);
@ -1703,8 +1703,8 @@ gst_dfbvideosink_buffer_alloc (GstBaseSink * bsink, guint64 offset, guint size,
dfbvideosink = GST_DFBVIDEOSINK (bsink); dfbvideosink = GST_DFBVIDEOSINK (bsink);
GST_DEBUG_OBJECT (dfbvideosink, "a buffer of %d bytes was requested " GST_LOG_OBJECT (dfbvideosink, "a buffer of %u bytes was requested with caps "
"with caps %" GST_PTR_FORMAT " and offset %llu", size, caps, offset); "%" GST_PTR_FORMAT " and offset %" G_GUINT64_FORMAT, size, caps, offset);
if (G_UNLIKELY (!dfbvideosink->setup)) { if (G_UNLIKELY (!dfbvideosink->setup)) {
GST_DEBUG_OBJECT (dfbvideosink, "we are not setup yet, can't allocate!"); GST_DEBUG_OBJECT (dfbvideosink, "we are not setup yet, can't allocate!");