From 6321d9910d22921977845ad1309cb002d21f615f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 6 Aug 2010 20:04:59 +0100 Subject: [PATCH] v4l2src: also log pixel formats in sorted order --- sys/v4l2/gstv4l2object.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c index c77da5e97a..84f2281f83 100644 --- a/sys/v4l2/gstv4l2object.c +++ b/sys/v4l2/gstv4l2object.c @@ -912,7 +912,20 @@ gst_v4l2_object_fill_format_list (GstV4l2Object * v4l2object) (GCompareFunc) format_cmp_func); } - GST_DEBUG_OBJECT (v4l2object->element, "got %d format(s)", n); +#ifndef GST_DISABLE_GST_DEBUG + { + GSList *l; + + GST_INFO_OBJECT (v4l2object->element, "got %d format(s):", n); + for (l = v4l2object->formats; l != NULL; l = l->next) { + format = l->data; + + GST_INFO_OBJECT (v4l2object->element, + " %" GST_FOURCC_FORMAT "%s", GST_FOURCC_ARGS (format->pixelformat), + ((format->flags & V4L2_FMT_FLAG_EMULATED)) ? " (emulated)" : ""); + } + } +#endif return TRUE;