From: Martin Rubli Date: Mon, 8 May 2006 19:21:18 +0000 (+0000) Subject: Fix fourcc name printed out. Patch from Martin Rubli. X-Git-Tag: 1.19.3~507^2~21552 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d10ee34f44a73a2eda284cae4d866796fd69767a;p=platform%2Fupstream%2Fgstreamer.git Fix fourcc name printed out. Patch from Martin Rubli. Original commit message from CVS: Fix fourcc name printed out. Patch from Martin Rubli. --- diff --git a/ChangeLog b/ChangeLog index 110cbd02a6..631b3ad33c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-08 Edgard Lima + + * sys/v4l2/gstv4l2src.c: + * sys/v4l2/v4l2src_calls.c: + Fix fourcc name printed out. Patch from Martin Rubli. + 2006-05-08 Wim Taymans * gst/qtdemux/qtdemux.c: (gst_qtdemux_handle_src_query), diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c index 09767ea602..dc8b7cbeb9 100644 --- a/sys/v4l2/gstv4l2src.c +++ b/sys/v4l2/gstv4l2src.c @@ -491,7 +491,7 @@ gst_v4l2src_v4l2fourcc_to_caps (guint32 fourcc) case V4L2_PIX_FMT_WNVA: /* Winnov hw compres */ break; default: - GST_DEBUG ("Unknown fourcc 0x%08x " GST_FOURCC_FORMAT, + GST_DEBUG ("Unknown fourcc 0x%08x %" GST_FOURCC_FORMAT, fourcc, GST_FOURCC_ARGS (fourcc)); break; } diff --git a/sys/v4l2/v4l2src_calls.c b/sys/v4l2/v4l2src_calls.c index f28bc96e8d..4f55d8b629 100644 --- a/sys/v4l2/v4l2src_calls.c +++ b/sys/v4l2/v4l2src_calls.c @@ -85,7 +85,7 @@ gst_v4l2src_fill_format_list (GstV4l2Src * v4l2src) return FALSE; } } - GST_LOG_OBJECT (v4l2src, "got format" GST_FOURCC_FORMAT, + GST_LOG_OBJECT (v4l2src, "got format %" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (format->pixelformat)); v4l2src->formats = g_slist_prepend (v4l2src->formats, format); } @@ -341,7 +341,7 @@ gst_v4l2src_capture_init (GstV4l2Src * v4l2src) g_object_notify (G_OBJECT (v4l2src), "num_buffers"); GST_INFO_OBJECT (v4l2src, - "Got %d buffers (" GST_FOURCC_FORMAT ") of size %d KB\n", + "Got %d buffers (%" GST_FOURCC_FORMAT ") of size %d KB\n", v4l2src->breq.count, GST_FOURCC_ARGS (v4l2src->format.fmt.pix.pixelformat), v4l2src->format.fmt.pix.sizeimage / 1024); @@ -574,7 +574,8 @@ gst_v4l2src_get_size_limits (GstV4l2Src * v4l2src, { struct v4l2_format fmt; - GST_LOG_OBJECT (v4l2src, "getting size limits with format " GST_FOURCC_FORMAT, + GST_LOG_OBJECT (v4l2src, + "getting size limits with format %" GST_FOURCC_FORMAT, GST_FOURCC_ARGS (format->pixelformat)); /* get size delimiters */ @@ -805,17 +806,18 @@ gst_v4l2src_buffer_new (GstV4l2Src * v4l2src, guint size, guint8 * data, { GstBuffer *buf; - GST_LOG_OBJECT (v4l2src, "creating buffer %d"); - if (data == NULL) { buf = gst_buffer_new_and_alloc (size); } else { buf = (GstBuffer *) gst_mini_object_new (GST_TYPE_V4L2SRC_BUFFER); GST_BUFFER_DATA (buf) = data; GST_V4L2SRC_BUFFER (buf)->buf = srcbuf; + GST_LOG_OBJECT (v4l2src, "creating buffer %p (nr. %d)", + srcbuf, srcbuf->buffer.index); } + GST_BUFFER_SIZE (buf) = size; GST_BUFFER_TIMESTAMP (buf) =