haha! you thought you had me, but i found your ass, double _init() on the vorbis encoder
git-svn-id: https://svn.musicpd.org/mpd/trunk@2456 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
6d7e6a8581
commit
5ffa401e74
|
@ -311,12 +311,13 @@ static int myShout_handleError(ShoutData * sd, int err) {
|
|||
}
|
||||
|
||||
static int write_page(ShoutData * sd) {
|
||||
int err = 0;
|
||||
|
||||
shout_sync(sd->shoutConn);
|
||||
int err = shout_send(sd->shoutConn, sd->og.header, sd->og.header_len);
|
||||
err = shout_send(sd->shoutConn, sd->og.header, sd->og.header_len);
|
||||
if(myShout_handleError(sd, err) < 0) return -1;
|
||||
err = shout_send(sd->shoutConn, sd->og.body, sd->og.body_len);
|
||||
if(myShout_handleError(sd, err) < 0) return -1;
|
||||
/*shout_sync(sd->shoutConn);*/
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -358,12 +359,6 @@ static int initEncoder(ShoutData * sd) {
|
|||
}
|
||||
}
|
||||
|
||||
if(0 != vorbis_encode_setup_init(&(sd->vi))) {
|
||||
ERROR("problem seting up vorbis encoder for shout\n");
|
||||
vorbis_info_clear(&(sd->vi));
|
||||
return -1;
|
||||
}
|
||||
|
||||
vorbis_analysis_init(&(sd->vd), &(sd->vi));
|
||||
vorbis_block_init (&(sd->vd), &(sd->vb));
|
||||
|
||||
|
|
Loading…
Reference in New Issue