changeset 36643:70c6735c36a3

ao_v4l2: fix broken sample rate check.
author reimar
date Sat, 25 Jan 2014 16:55:12 +0000
parents aa717fdfa806
children 8d39d6874ec0
files libao2/ao_v4l2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_v4l2.c	Sat Jan 25 16:55:11 2014 +0000
+++ b/libao2/ao_v4l2.c	Sat Jan 25 16:55:12 2014 +0000
@@ -81,7 +81,7 @@
   freq = rate;
 
   /* check for supported audio rate */
-  if (rate != 32000 || rate != 41000 || rate != 48000)
+  if (rate != 32000 && rate != 41000 && rate != 48000)
   {
     mp_msg (MSGT_AO, MSGL_ERR, MSGTR_AO_MPEGPES_UnsupSamplerate, rate);
     rate = 48000;