From bb29b8f8d29efd730b12caccfddb8ba8772f4ba6 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Thu, 11 Feb 2021 14:48:07 -0500 Subject: [PATCH] v4l2bufferpool: Silence traces around unsupported source change Don't be too spamy about unsupported source change flags as these will be commonly extended in the future. Part-of: --- sys/v4l2/gstv4l2bufferpool.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 164346e..7b5050a 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -1122,12 +1122,17 @@ again: if (!gst_v4l2_dequeue_event (pool->obj, &event)) goto dqevent_failed; - if (event.type != V4L2_EVENT_SOURCE_CHANGE || - (event.u.src_change.changes & V4L2_EVENT_SRC_CH_RESOLUTION) == 0) { + if (event.type != V4L2_EVENT_SOURCE_CHANGE) { GST_INFO_OBJECT (pool, "Received unhandled event, ignoring."); goto again; } + if ((event.u.src_change.changes & V4L2_EVENT_SRC_CH_RESOLUTION) == 0) { + GST_DEBUG_OBJECT (pool, + "Received non-resolution source-change, ignoring."); + goto again; + } + return GST_V4L2_FLOW_RESOLUTION_CHANGE; } -- 2.7.4