[xiph-commits] r7991 - icecast/branches/kh/ices/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Tue Oct 12 12:35:14 PDT 2004


Author: karl
Date: 2004-10-12 12:35:14 -0700 (Tue, 12 Oct 2004)
New Revision: 7991

Modified:
   icecast/branches/kh/ices/src/im_oss.c
Log:
allow for differences from requested samplerate, and log it if so


Modified: icecast/branches/kh/ices/src/im_oss.c
===================================================================
--- icecast/branches/kh/ices/src/im_oss.c	2004-10-12 16:27:49 UTC (rev 7990)
+++ icecast/branches/kh/ices/src/im_oss.c	2004-10-12 19:35:14 UTC (rev 7991)
@@ -322,8 +322,8 @@
 	}
 	if(rate != s->samplerate)
 	{
-		LOG_ERROR0("Couldn't set sampling rate");
-		goto fail;
+        LOG_WARN2("Could not set sampling rate to %d, using %d instead", s->samplerate, rate);
+        s->samplerate = rate;
 	}
 
 	/* We're done, and we didn't fail! */



More information about the commits mailing list