[xiph-commits] r7899 - icecast/trunk/icecast/src

msmith at motherfish-iii.xiph.org msmith at motherfish-iii.xiph.org
Thu Sep 30 17:42:19 PDT 2004


Author: msmith
Date: 2004-09-30 17:42:19 -0700 (Thu, 30 Sep 2004)
New Revision: 7899

Modified:
   icecast/trunk/icecast/src/source.c
Log:
When creating a source (in source_reserve), issue a warning if the mountpoint
does not start with a /, since clients will then be unable to connect to it


Modified: icecast/trunk/icecast/src/source.c
===================================================================
--- icecast/trunk/icecast/src/source.c	2004-10-01 00:39:37 UTC (rev 7898)
+++ icecast/trunk/icecast/src/source.c	2004-10-01 00:42:19 UTC (rev 7899)
@@ -70,6 +70,10 @@
 {
     source_t *src = NULL;
 
+    if(mount[0] != '/')
+        WARN1("Source at \"%s\" does not start with '/', clients will be "
+                "unable to connect", mount);
+
     do
     {
         avl_tree_wlock (global.source_tree);



More information about the commits mailing list