]> code.delx.au - pulseaudio/commit
sndfile-util: reduce useless loop
authorWang Xingchao <xingchao.wang@intel.com>
Mon, 7 May 2012 08:52:18 +0000 (16:52 +0800)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 19 Dec 2012 10:31:50 +0000 (12:31 +0200)
commit953bedc974df95ac434698b71e76c2066d5e8006
tree392e5b8cff25c00af7d4596305823f31b80bab4a
parent0c5e39a9613ea4eff5499b3a41cf85a9bf95c3ce
sndfile-util: reduce useless loop

it's useless to get the same SF_FORMAT_INFO three times, just compare the
name/extention in the same loop.

Signed-off-by: Wang Xingchao <xingchao.wang@intel.com>
src/pulsecore/sndfile-util.c