Commit 6aed3ced authored by brendan's avatar brendan
Browse files

Use shout_send_raw instead of sock_write_bytes, to provide a hook for

non-blocking/paged I/O.

svn path=/icecast/trunk/libshout/; revision=7258
parent 2fe56459
......@@ -203,7 +203,7 @@ static int send_mp3(shout_t* self, const unsigned char* buff, size_t len)
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 @@ static int send_mp3(shout_t* self, const unsigned char* buff, size_t len)
/* 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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment