4 #include "chkMemoryLeak.h"
5 #define DEBUG_NEW new(__FILE__, __LINE__)
9 // ------------------------------------------------
10 void ICYSource::stream(Channel *ch)
12 ChannelStream *source=NULL;
17 throw StreamException("ICY channel has no socket");
21 ch->setStatus(Channel::S_BROADCASTING);
22 source = ch->createSource();
23 ch->readStream(*ch->sock,source);
25 }catch(StreamException &e)
27 LOG_ERROR("Channel aborted: %s",e.msg);
31 ch->setStatus(Channel::S_CLOSING);