[vlc-commits] opensles_android: report mute state

Zhao Zhili git at videolan.org
Mon Feb 1 11:10:03 UTC 2021


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Sat Jan 30 17:52:38 2021 +0800| [088c7876802d4dafdc329f1824282bf83971e9cc] | committer: Alexandre Janniaux

opensles_android: report mute state

Signed-off-by: Alexandre Janniaux <ajanni at videolabs.io>

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

 modules/audio_output/opensles_android.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index 9e90b393d5..5459c40f04 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -224,7 +224,12 @@ static int MuteSet(audio_output_t *aout, bool mute)
         return -1;
 
     SLresult r = SetMute(sys->volumeItf, mute);
-    return (r == SL_RESULT_SUCCESS) ? 0 : -1;
+    if (r == SL_RESULT_SUCCESS) {
+        aout_MuteReport(aout, mute);
+        return 0;
+    } else {
+        return -1;
+    }
 }
 
 static void Pause(audio_output_t *aout, bool pause, vlc_tick_t date)



More information about the vlc-commits mailing list