[vlc-commits] PulseAudio: fix inverted logic

Rémi Denis-Courmont git at videolan.org
Sat Oct 8 11:52:52 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct  8 12:52:40 2011 +0300| [14fa4b2841f99d604476345516717b3bc744a063] | committer: Rémi Denis-Courmont

PulseAudio: fix inverted logic

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14fa4b2841f99d604476345516717b3bc744a063
---

 src/pulse/mainloop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/pulse/mainloop.c b/src/pulse/mainloop.c
index 0cb43d8..34f722b 100644
--- a/src/pulse/mainloop.c
+++ b/src/pulse/mainloop.c
@@ -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);



More information about the vlc-commits mailing list