use 16-bit signed ints for storing positions in the ring buffer
git-svn-id: https://svn.musicpd.org/mpd/trunk@576 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
@@ -51,6 +51,11 @@ void initPlayerData() {
|
||||
|
||||
buffered_chunks = bufferSize/CHUNK_SIZE;
|
||||
|
||||
if(buffered_chunks >= 1<<15) {
|
||||
ERROR("buffer size \"%i\" is too big\n",bufferSize);
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
perc = strtod((getConf())[CONF_BUFFER_BEFORE_PLAY],&test);
|
||||
if(*test!='%' || perc<0 || perc>100) {
|
||||
ERROR("buffered before play \"%s\" is not a positive "
|
||||
|
||||
Reference in New Issue
Block a user