[vlc-commits] aout: opensles: handle only linear formats

Thomas Guillem git at videolan.org
Wed Aug 23 16:30:41 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Aug 23 16:30:14 2017 +0200| [e416b441c976f5eef9fdda961e754f19df94fe58] | committer: Thomas Guillem

aout: opensles: handle only linear formats

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

 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 9b830b7e97..d45a96336a 100644
--- a/modules/audio_output/opensles_android.c
+++ b/modules/audio_output/opensles_android.c
@@ -379,7 +379,7 @@ static int aout_get_native_sample_rate(audio_output_t *aout)
  *****************************************************************************/
 static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
 {
-    if (aout_FormatNbChannels(fmt) == 0)
+    if (aout_FormatNbChannels(fmt) == 0 || !AOUT_FMT_LINEAR(fmt))
         return VLC_EGENERIC;
 
     SLresult       result;



More information about the vlc-commits mailing list