# HG changeset patch # User reimar # Date 1390668912 0 # Node ID 70c6735c36a37cde8aa5cbb02b711958d86b539c # Parent aa717fdfa806baff7d29291f3814c849f8fcddd4 ao_v4l2: fix broken sample rate check. diff -r aa717fdfa806 -r 70c6735c36a3 libao2/ao_v4l2.c --- 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;