[vlc-commits] opensles: kill warning about sign comparison

Zhao Zhili git at videolan.org
Fri Aug 17 11:48:59 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Fri Aug 17 11:13:17 2018 +0800| [b9d1da5ef8bc66a2f7a16d49c4b01f2141dcebe7] | committer: Thomas Guillem

opensles: kill warning about sign comparison

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

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

diff --git a/modules/audio_output/opensles_android.c b/modules/audio_output/opensles_android.c
index b475c0855d..1a12d1d6f4 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -417,7 +417,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
     const SLInterfaceID ids2[] = { sys->SL_IID_ANDROIDSIMPLEBUFFERQUEUE, sys->SL_IID_VOLUME };
     static const SLboolean req2[] = { SL_BOOLEAN_TRUE, SL_BOOLEAN_TRUE };
 
-    if (aout_get_native_sample_rate(aout) >= fmt->i_rate) {
+    if (aout_get_native_sample_rate(aout) >= (int)fmt->i_rate) {
         result = CreateAudioPlayer(sys->engineEngine, &sys->playerObject, &audioSrc,
                                     &audioSnk, sizeof(ids2) / sizeof(*ids2),
                                     ids2, req2);



More information about the vlc-commits mailing list