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:
parent
8dbbea8598
commit
b6bcc65a45
@ -242,12 +242,12 @@ static void shout_handleError(ShoutData * sd, int err) {
|
|||||||
static void write_page(ShoutData * sd) {
|
static void write_page(ShoutData * sd) {
|
||||||
if(!sd->og.header_len || !sd->og.body_len) return;
|
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);
|
int err = shout_send(sd->shoutConn, sd->og.header, sd->og.header_len);
|
||||||
shout_handleError(sd, err);
|
shout_handleError(sd, err);
|
||||||
err = shout_send(sd->shoutConn, sd->og.body, sd->og.body_len);
|
err = shout_send(sd->shoutConn, sd->og.body, sd->og.body_len);
|
||||||
shout_handleError(sd, err);
|
shout_handleError(sd, err);
|
||||||
shout_sync(sd->shoutConn);
|
/*shout_sync(sd->shoutConn);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
static int shout_openDevice(AudioOutput * audioOutput,
|
static int shout_openDevice(AudioOutput * audioOutput,
|
||||||
|
Loading…
Reference in New Issue
Block a user