]> code.delx.au - pulseaudio/commit
sample-util: Remove redundant check from pa_volume_memchunk.
authorTanu Kaskinen <tanu.kaskinen@digia.com>
Fri, 23 Mar 2012 09:01:22 +0000 (11:01 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Wed, 28 Mar 2012 14:22:44 +0000 (17:22 +0300)
commit2f7a586a23a7e8c595c4a0a1d11b75669953d794
treeb99b630f5b34eee53a918349d7980d0c4cd51e22
parentc2c5e044cce27a25261d2603cc0a9e72806d3972
sample-util: Remove redundant check from pa_volume_memchunk.

Add also an assertion for the sample spec validity. The
existing code already does crash in case of an invalid
sample spec, but the error would not be as obvious: the
crash would happen due to a divide-by-zero operation in
pa_frame_aligned().
src/pulsecore/sample-util.c