added check for bufferSecs setting not to be 0

This commit is contained in:
darkeye 2006-01-19 16:09:05 +00:00
parent 1c63d67e53
commit 334b849fff
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
next release
o added check for bufferSecs set to 0
thanks to Toph <fangiotophia@gmail.com>
22-10-2005 DarkIce 0.16 released
o added AAC support through the faac codec, http://www.audiocoding.com

View File

@ -144,6 +144,10 @@ DarkIce :: init ( const Config & config ) throw ( Exception )
duration = Util::strToL( str);
str = cs->getForSure( "bufferSecs", " missing in section [general]");
bufferSecs = Util::strToL( str);
if (bufferSecs == 0) {
throw Exception(__FILE__, __LINE__,
"setting bufferSecs to 0 not supported");
}
str = cs->get( "reconnect");
reconnect = str ? (Util::strEq( str, "yes") ? true : false) : true;
@ -1067,6 +1071,9 @@ DarkIce :: run ( void ) throw ( Exception )
$Source$
$Log$
Revision 1.46 2006/01/19 16:09:05 darkeye
added check for bufferSecs setting not to be 0
Revision 1.45 2005/10/22 10:34:21 darkeye
added highpass and lowpass values to icecast2 sections