[vlc-commits] amem: fix inverted logic

Rémi Denis-Courmont git at videolan.org
Sat May 5 09:59:49 CEST 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May  5 10:58:34 2018 +0300| [b7d6ed35a84f6c534cb14c9168c1ee2956eb923c] | committer: Rémi Denis-Courmont

amem: fix inverted logic

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

 modules/audio_output/amem.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/amem.c b/modules/audio_output/amem.c
index 7e0829e001..db0befe3f7 100644
--- a/modules/audio_output/amem.c
+++ b/modules/audio_output/amem.c
@@ -111,7 +111,7 @@ static int VolumeSet (audio_output_t *aout, float vol)
     aout_sys_t *sys = aout->sys;
 
     sys->volume = vol;
-    if (sys->ready)
+    if (!sys->ready)
         return 0; /* sys->opaque is not yet defined... */
     return sys->set_volume (sys->opaque, vol, sys->mute) ? -1 : 0;
 }



More information about the vlc-commits mailing list