Commit b6bcc65a authored by Warren Dukes's avatar Warren Dukes

shout_sync before shout_send, not after

git-svn-id: https://svn.musicpd.org/mpd/trunk@2318 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 8dbbea85
......@@ -242,12 +242,12 @@ static void shout_handleError(ShoutData * sd, int err) {
static void write_page(ShoutData * sd) {
if(!sd->og.header_len || !sd->og.body_len) return;
/*shout_sync(sd->shoutConn);*/
shout_sync(sd->shoutConn);
int err = shout_send(sd->shoutConn, sd->og.header, sd->og.header_len);
shout_handleError(sd, err);
err = shout_send(sd->shoutConn, sd->og.body, sd->og.body_len);
shout_handleError(sd, err);
shout_sync(sd->shoutConn);
/*shout_sync(sd->shoutConn);*/
}
static int shout_openDevice(AudioOutput * audioOutput,
......
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