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

brendan at dactyl.lonelymoon.com brendan
Thu Jul 22 11:47:23 PDT 2004


Author: brendan
Date: Thu Jul 22 11:47:23 2004
New Revision: 7258

Modified:
icecast/trunk/libshout/src/mp3.c
Log:
Use shout_send_raw instead of sock_write_bytes, to provide a hook for
non-blocking/paged I/O.


Modified: icecast/trunk/libshout/src/mp3.c
===================================================================
--- icecast/trunk/libshout/src/mp3.c	2004-07-22 18:34:28 UTC (rev 7257)
+++ icecast/trunk/libshout/src/mp3.c	2004-07-22 18:47:22 UTC (rev 7258)
@@ -203,7 +203,7 @@
end = pos - 1;
count = end - start + 1;
if (count > 0)
-					ret = sock_write_bytes(self->socket, (char *)&buff[start], count);
+					ret = shout_send_raw(self, (char *)&buff[start], count);
else
ret = 0;

@@ -234,7 +234,7 @@
/* if there's no errors, lets send the frames */
count = end - start + 1;
if (count > 0)
-			ret = sock_write_bytes(self->socket, (char *)&buff[start], count);
+			ret = shout_send_raw(self, (char *)&buff[start], count);
else
ret = 0;




More information about the commits mailing list