shout_sync before shout_send, not after

git-svn-id: https://svn.musicpd.org/mpd/trunk@2318 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-10-23 16:20:38 +00:00
parent 8dbbea8598
commit b6bcc65a45

View File

@ -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,