summaryrefslogtreecommitdiff
path: root/sys/v4l2/gstv4l2src.c
diff options
context:
space:
mode:
authorEnrico Jorns <ejo@pengutronix.de>2015-01-28 08:58:26 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2017-01-16 10:29:47 -0500
commiteb25b058f994f4d71131f478f8859cd40ebd2bc1 (patch)
treeeb445c8a8b91b921af599e467baa63a1a9400dcb /sys/v4l2/gstv4l2src.c
parent1c2e2d83ce6e488b8387cf90902d7ccfbf41a46e (diff)
v4l2: Remove usage and definition of LOG_CAPS macro
Unlike former definitions of LOG_CAPS, the current implementation simply expands to GST_DEBUG_OBJECT. The LOG_CAPS macro is rarely used and most uses duplicate already existing GST_DEBUG_OBJECT lines. Therefore, the caps are often printed twice which unnecessarily clutters the debug log. Replace LOG_CAPS calls with GST_DEBUG_OBJECT, remove LOG_CAPS calls, and delete the definition of LOG_CAPS. https://bugzilla.gnome.org/show_bug.cgi?id=776899
Diffstat (limited to 'sys/v4l2/gstv4l2src.c')
-rw-r--r--sys/v4l2/gstv4l2src.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/v4l2/gstv4l2src.c b/sys/v4l2/gstv4l2src.c
index 0149814f2..cf10de71f 100644
--- a/sys/v4l2/gstv4l2src.c
+++ b/sys/v4l2/gstv4l2src.c
@@ -298,7 +298,6 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
/* first see what is possible on our source pad */
thiscaps = gst_pad_query_caps (GST_BASE_SRC_PAD (basesrc), NULL);
GST_DEBUG_OBJECT (basesrc, "caps of src: %" GST_PTR_FORMAT, thiscaps);
- LOG_CAPS (basesrc, thiscaps);
/* nothing or anything is allowed, we're done */
if (thiscaps == NULL || gst_caps_is_any (thiscaps))
@@ -307,8 +306,6 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
/* get the peer caps without a filter as we'll filter ourselves later on */
peercaps = gst_pad_peer_query_caps (GST_BASE_SRC_PAD (basesrc), NULL);
GST_DEBUG_OBJECT (basesrc, "caps of peer: %" GST_PTR_FORMAT, peercaps);
- LOG_CAPS (basesrc, peercaps);
-
if (peercaps && !gst_caps_is_any (peercaps)) {
GstCaps *icaps = NULL;
@@ -317,7 +314,6 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
GST_CAPS_INTERSECT_FIRST);
GST_DEBUG_OBJECT (basesrc, "intersect: %" GST_PTR_FORMAT, icaps);
- LOG_CAPS (basesrc, icaps);
if (icaps) {
/* If there are multiple intersections pick the one with the smallest
* resolution strictly bigger then the first peer caps */
@@ -369,7 +365,6 @@ gst_v4l2src_negotiate (GstBaseSrc * basesrc)
if (!gst_caps_is_empty (caps)) {
caps = gst_v4l2src_fixate (basesrc, caps);
GST_DEBUG_OBJECT (basesrc, "fixated to: %" GST_PTR_FORMAT, caps);
- LOG_CAPS (basesrc, caps);
if (gst_caps_is_any (caps)) {
/* hmm, still anything, so element can do anything and