Check the returned audio_buf_info fields
authormalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 8 Jun 2008 04:27:56 +0000 (04:27 +0000)
committermalc <malc@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 8 Jun 2008 04:27:56 +0000 (04:27 +0000)
commit29ddf27b72960d6e6b115cd69812c9c57b2a7b13
tree53f9ec0ec41f6032f8db4260fed6a63d71ea3fb4
parent7fb2a862f40a9615f8ae5bc3f8c0c2d33ee8db91
Check the returned audio_buf_info fields

At least on one system zero is returned in either fragsize or
fragstotal (reported by Dave Scott), this results in an audio_calloc
failing the audio_bug check and another ominous error message. Fail
early and blame the system.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4699 c046a42c-6fe2-441c-8c8c-71466251a162
audio/ossaudio.c