[vlc-commits] amem: fix inverted logic

Rémi Denis-Courmont git at videolan.org
Sat May 5 10:00:50 CEST 2018


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

amem: fix inverted logic

(cherry picked from commit b7d6ed35a84f6c534cb14c9168c1ee2956eb923c)
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

 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 db90fc250a..b2d3d37f7e 100644
--- a/modules/audio_output/amem.c
+++ b/modules/audio_output/amem.c
@@ -112,7 +112,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