[vlc-commits] aout: fix f788153

Rafaël Carré git at videolan.org
Mon Mar 4 12:24:53 CET 2013


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Mar  4 12:21:26 2013 +0100| [4b44a0ef73e9406b0885272aed8f447ec5f47f55] | committer: Rafaël Carré

aout: fix f788153

Make char explicitely signed to represent a boolean
If it is unsigned, default value -1 will represent 255 and
effectively set mute to 255, i.e. true.

Fix lack of hearable audio output on android

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

 src/audio_output/aout_internal.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/audio_output/aout_internal.h b/src/audio_output/aout_internal.h
index 5c1c9dd..93c828f 100644
--- a/src/audio_output/aout_internal.h
+++ b/src/audio_output/aout_internal.h
@@ -57,7 +57,7 @@ typedef struct
         vlc_mutex_t lock;
         char *device;
         float volume;
-        char mute;
+        signed char mute;
     } req;
 
     struct



More information about the vlc-commits mailing list