mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/870>
This commit is contained in:
parent
409ea3ac84
commit
bb29b8f8d2
1 changed files with 7 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue