From f0b21a23a098329e87ff2ff5e8e94171fd8e5ba0 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Thu, 4 May 2023 20:07:29 +0900 Subject: [PATCH] fixup! good:pulse: add null check for mainloop access while handling of query caps Change-Id: I1827f37b103e0b40fa13e7931362686e21e93da5 --- subprojects/gst-plugins-good/ext/pulse/pulsesink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/pulse/pulsesink.c b/subprojects/gst-plugins-good/ext/pulse/pulsesink.c index f12db5ed75..9a20e0fc42 100644 --- a/subprojects/gst-plugins-good/ext/pulse/pulsesink.c +++ b/subprojects/gst-plugins-good/ext/pulse/pulsesink.c @@ -2269,7 +2269,7 @@ gst_pulsesink_query_getcaps (GstPulseSink * psink, GstCaps * filter) } #ifdef TIZEN_FEATURE_PULSE_MODIFICATION - if (mainloop) { + if (!mainloop) { GST_WARNING_OBJECT (psink, "Invalid mainloop!!!"); goto out; } @@ -2410,7 +2410,7 @@ gst_pulsesink_query_acceptcaps (GstPulseSink * psink, GstCaps * caps) goto done; #ifdef TIZEN_FEATURE_PULSE_MODIFICATION - if (mainloop) { + if (!mainloop) { GST_WARNING_OBJECT (psink, "Invalid mainloop!!!"); goto done; } -- 2.34.1