added check for bufferSecs setting not to be 0
This commit is contained in:
parent
1c63d67e53
commit
334b849fff
|
@ -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
|
22-10-2005 DarkIce 0.16 released
|
||||||
|
|
||||||
o added AAC support through the faac codec, http://www.audiocoding.com
|
o added AAC support through the faac codec, http://www.audiocoding.com
|
||||||
|
|
|
@ -144,6 +144,10 @@ DarkIce :: init ( const Config & config ) throw ( Exception )
|
||||||
duration = Util::strToL( str);
|
duration = Util::strToL( str);
|
||||||
str = cs->getForSure( "bufferSecs", " missing in section [general]");
|
str = cs->getForSure( "bufferSecs", " missing in section [general]");
|
||||||
bufferSecs = Util::strToL( str);
|
bufferSecs = Util::strToL( str);
|
||||||
|
if (bufferSecs == 0) {
|
||||||
|
throw Exception(__FILE__, __LINE__,
|
||||||
|
"setting bufferSecs to 0 not supported");
|
||||||
|
}
|
||||||
str = cs->get( "reconnect");
|
str = cs->get( "reconnect");
|
||||||
reconnect = str ? (Util::strEq( str, "yes") ? true : false) : true;
|
reconnect = str ? (Util::strEq( str, "yes") ? true : false) : true;
|
||||||
|
|
||||||
|
@ -1067,6 +1071,9 @@ DarkIce :: run ( void ) throw ( Exception )
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
$Log$
|
$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
|
Revision 1.45 2005/10/22 10:34:21 darkeye
|
||||||
added highpass and lowpass values to icecast2 sections
|
added highpass and lowpass values to icecast2 sections
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue