]> git.sesse.net Git - vlc/commitdiff
PulseAudio: fix inverted logic
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Oct 2011 09:52:40 +0000 (12:52 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Oct 2011 09:52:40 +0000 (12:52 +0300)
src/pulse/mainloop.c

index 0cb43d8116431a64506f7d2a9a5d41cd4244bcde..34f722b113dd2fe20741a7b190dceead6183eebb 100644 (file)
@@ -83,7 +83,7 @@ static void vlc_pa_mainloop_deinit (void)
 {
     vlc_mutex_lock (&lock);
     assert (refs > 0);
-    if (--refs > 0)
+    if (--refs == 0)
     {
         pa_threaded_mainloop_stop (vlc_pa_mainloop);
         pa_threaded_mainloop_free (vlc_pa_mainloop);