Don't allow 0 periods

This commit is contained in:
Chris Robinson 2008-01-06 01:27:26 -08:00
parent 298f6f440a
commit 1178e900eb

View File

@ -194,7 +194,7 @@ static ALCboolean oss_open_playback(ALCdevice *device, const ALCchar *deviceName
}
periods = GetConfigValueInt("oss", "periods", 4);
if((int)periods < 0)
if((int)periods <= 0)
periods = 4;
numChannels = device->Channels;
ossSpeed = device->Frequency;