validate: flow: Fix logging upstream events

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7700>
This commit is contained in:
Thibault Saunier 2024-08-15 17:58:14 -04:00 committed by GStreamer Marge Bot
parent 56000b91b7
commit 932f0a6175

View file

@ -470,10 +470,10 @@ validate_flow_format_event (GstEvent * event,
if (!g_strv_contains (logged_upstream_event_types, event_type)) if (!g_strv_contains (logged_upstream_event_types, event_type))
return NULL; return NULL;
} } else if (logged_event_types
&& !g_strv_contains (logged_event_types, event_type)) {
if (logged_event_types && !g_strv_contains (logged_event_types, event_type))
return NULL; return NULL;
}
if (ignored_event_types && g_strv_contains (ignored_event_types, event_type)) if (ignored_event_types && g_strv_contains (ignored_event_types, event_type))
return NULL; return NULL;