Hi! Here are some patches to the CVS (ices) that I made to
get my radio webinterface with songselection-support
working.
To make the log update (flush) each time something is
written (before the patch it flushes only when you quit):
---- CUT ----
Index: log.c
=================================================================RCS file:
/usr/local/cvsroot/log/log.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 log.c
--- log.c 2001/09/10 02:32:03 1.1.1.1
+++ log.c 2001/09/27 06:16:00
@@ -161,7 +161,8 @@
snprintf(pre, 256, "%s %s", prior[priority-1], cat);
- fprintf(loglist[log_id].logfile, "%s %s %s\n", tyme, pre,
line);
+ fprintf(loglist[log_id].logfile, "%s %s %s\n", tyme, pre,
line);
+ log_flush(log_id);
va_end(ap);
}
@@ -178,7 +179,7 @@
fprintf(loglist[log_id].logfile, "%s\n", line);
va_end(ap);
- fflush(loglist[log_id].logfile);
+ log_flush(log_id);
}
int _get_log_id()
---- CUT ---
To make ices restart playing the playlist from the
beginning when it is updated:
---- CUT ----
Index: playlist_basic.c
=================================================================RCS file:
/usr/local/cvsroot/ices/src/playlist_basic.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 playlist_basic.c
--- playlist_basic.c 2001/09/10 02:30:54 1.1.1.1
+++ playlist_basic.c 2001/09/27 06:15:24
@@ -128,6 +128,8 @@
{
LOG_INFO1("Reloading playlist after file \"%s\"
changed", pl->file);
load_playlist(pl);
+ pl->pos =1;
+ return pl->pl[0];
}
---- CUT ----
Regards
Per Wigren
> Hi all:
>
> A couple of weeks ago, Jack posted on the icecast list
that icecast 2.0 and> its relatives would be moving to the xiph.org CVS
repository and that he'd> post the details shortly. He hasn't yet, probably just
an oversight.> Anyway, I went exploring the other day and found them.
The details are as> follows:
> Server: :pserver:anoncvs@xiph.org
> Password: anoncvs
>
> For those not familiar with CVS, basic instructions for
accessing this can> be found at http://www.xiph.org/cvs.html but the icecast
modules> are not listed there. The modules I have found are:
>
> icecast - The icecast server (version 2.0)
> libshout - Libshout (the shout library, version 2.0)
> ices - Ices (the icecast streamer, version 2.0)
>
> All of these rely on additional modules.
>
> avl - required by icecast, libshout and ices
> httpp - required by icecast
> log - required by icecast, libshout and ices
> net - required by icecast, libshout and ices
> thread - required by icecast, libshout and ices
> timing - required by icecast, libshout and ices
>
> These modules need to be located in the src subdirectory
of its parent> tree. So, for example:
>
> cvs co icecast
> cd icecast/src
> cvs co avl
> cvs co httpp
> cvs co log
> cvs co net
> cvs co thread
> cvs co timing
>
> Personally, I've put all the sources under icecast (as
above) and linked to> them from the other 2 trees.
>
> I'm relatively green when it comes to all this, so feel
free to correct me> on any of this. Just thought people would want to know
that it's there now> and how to get it.
>
> Geoff.
>
>
>
> --- >8 ----
> List archives: http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'vorbis-
request@xiph.org'> containing only the word 'unsubscribe' in the body. No
subject is needed.> Unsubscribe messages sent to the list will be
ignored/filtered.>
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to
'vorbis-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.