Don't crash if the audio couldn't be initialized. There is already the warning.

This commit is contained in:
Giulio Camuffo 2011-03-21 17:38:33 +01:00
parent c88c884be0
commit bf00268c33

View File

@ -331,7 +331,7 @@ public:
template<bool stereo, bool reverseStereo>
RateConverter *makeRateConverter(st_rate_t inrate, st_rate_t outrate) {
if (inrate != outrate) {
if (outrate && inrate != outrate) {
if ((inrate % outrate) == 0) {
return new SimpleRateConverter<stereo, reverseStereo>(inrate, outrate);
} else {