From 932f0a617546034f035469b13da03b895b854bed Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 15 Aug 2024 17:58:14 -0400 Subject: [PATCH] validate: flow: Fix logging upstream events Part-of: --- .../gst-devtools/validate/gst/validate/flow/formatting.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-devtools/validate/gst/validate/flow/formatting.c b/subprojects/gst-devtools/validate/gst/validate/flow/formatting.c index 1a4d91dcf7..27967a1cfb 100644 --- a/subprojects/gst-devtools/validate/gst/validate/flow/formatting.c +++ b/subprojects/gst-devtools/validate/gst/validate/flow/formatting.c @@ -470,10 +470,10 @@ validate_flow_format_event (GstEvent * event, if (!g_strv_contains (logged_upstream_event_types, event_type)) return NULL; - } - - if (logged_event_types && !g_strv_contains (logged_event_types, event_type)) + } else if (logged_event_types + && !g_strv_contains (logged_event_types, event_type)) { return NULL; + } if (ignored_event_types && g_strv_contains (ignored_event_types, event_type)) return NULL;