[xiph-commits] r18468 - icecast/trunk/libshout/src

ph3-der-loewe at svn.xiph.org ph3-der-loewe at svn.xiph.org
Wed Jul 18 15:20:22 PDT 2012


Author: ph3-der-loewe
Date: 2012-07-18 15:20:22 -0700 (Wed, 18 Jul 2012)
New Revision: 18468

Modified:
   icecast/trunk/libshout/src/mp3.c
   icecast/trunk/libshout/src/shout_private.h
   icecast/trunk/libshout/src/speex.c
Log:
fixed some compiler warnings (implicit declaration, signed vs. unsigned)

Modified: icecast/trunk/libshout/src/mp3.c
===================================================================
--- icecast/trunk/libshout/src/mp3.c	2012-07-18 20:26:51 UTC (rev 18467)
+++ icecast/trunk/libshout/src/mp3.c	2012-07-18 22:20:22 UTC (rev 18468)
@@ -204,7 +204,7 @@
 				end = pos - 1;
 				count = end - start + 1;
 				if (count > 0)
-					ret = shout_send_raw(self, (char *)&buff[start], count);
+					ret = shout_send_raw(self, &buff[start], count);
 				else
 					ret = 0;
 
@@ -235,7 +235,7 @@
 		/* if there's no errors, lets send the frames */
 		count = end - start + 1;
 		if (count > 0)
-			ret = shout_send_raw(self, (char *)&buff[start], count);
+			ret = shout_send_raw(self, &buff[start], count);
 		else
 			ret = 0;
 

Modified: icecast/trunk/libshout/src/shout_private.h
===================================================================
--- icecast/trunk/libshout/src/shout_private.h	2012-07-18 20:26:51 UTC (rev 18467)
+++ icecast/trunk/libshout/src/shout_private.h	2012-07-18 22:20:22 UTC (rev 18468)
@@ -109,5 +109,6 @@
 
 int shout_open_ogg(shout_t *self);
 int shout_open_mp3(shout_t *self);
+int shout_open_webm(shout_t *self);
 
 #endif /* __LIBSHOUT_SHOUT_PRIVATE_H__ */

Modified: icecast/trunk/libshout/src/speex.c
===================================================================
--- icecast/trunk/libshout/src/speex.c	2012-07-18 20:26:51 UTC (rev 18467)
+++ icecast/trunk/libshout/src/speex.c	2012-07-18 22:20:22 UTC (rev 18468)
@@ -48,7 +48,7 @@
 
 	ogg_stream_packetout(&codec->os, &packet);
 
-	if (!(speex_data->sh = speex_packet_to_header(packet.packet,packet.bytes))) {
+	if (!(speex_data->sh = speex_packet_to_header((char*)packet.packet,packet.bytes))) {
 		free_speex_data(speex_data);
 		
 		return SHOUTERR_UNSUPPORTED;



More information about the commits mailing list