fixup! good:pulse: add null check for mainloop access while handling of query caps 80/292380/1 accepted/tizen/7.0/unified/20230505.170242
authorSeungbae Shin <seungbae.shin@samsung.com>
Thu, 4 May 2023 11:07:29 +0000 (20:07 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 4 May 2023 11:08:17 +0000 (11:08 +0000)
Change-Id: I1827f37b103e0b40fa13e7931362686e21e93da5

subprojects/gst-plugins-good/ext/pulse/pulsesink.c

index 5e85eb36fc2f11e7991a54b6c4fa4af48659400d..8e80ad44d3122b6c4128158e2d1cb1e2be51bb37 100644 (file)
@@ -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;
   }