[xiph-cvs] cvs commit: icecast/src source.c

Jack Moffitt jack at xiph.org
Sun Jan 20 19:56:17 PST 2002



jack        02/01/20 19:56:16

  Modified:    src      source.c
  Log:
  Make it log to a file when the source gets disconnected

Revision  Changes    Path
1.5       +5 -0      icecast/src/source.c

Index: source.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/source.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- source.c	2002/01/05 00:29:27	1.4
+++ source.c	2002/01/21 03:56:16	1.5
@@ -23,9 +23,13 @@
 #include "client.h"
 #include "stats.h"
 #include "format.h"
+#include "logging.h"
 
 #include "source.h"
 
+#undef CATMODULE
+#define CATMODULE "source"
+
 /* avl tree helper */
 static int _compare_clients(void *compare_arg, void *a, void *b);
 static int _remove_client(void *key);
@@ -148,6 +152,7 @@
 
                 if (bytes <= 0) {
                         printf("DEBUG: got 0 bytes reading data, the source must have disconnected...\n");
+			INFO0("Disconnecting lame source...");
                         break;
                 }
 

<p><p><p>--- >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 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list