some shout cleanups

git-svn-id: https://svn.musicpd.org/mpd/trunk@2343 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes 2004-10-25 22:41:46 +00:00
parent 0da404ebb2
commit a2dbae4884

View File

@ -403,6 +403,8 @@ static void shout_sendMetadata(AudioOutput * audioOutput, MpdTag * tag) {
ShoutData * sd = (ShoutData *)audioOutput->data;
ogg_int64_t granulepos = sd->vd.granulepos;
if(!sd->opened) return;
clearEncoder(sd);
if(initEncoder(sd) < 0) return;
@ -427,7 +429,7 @@ static void shout_sendMetadata(AudioOutput * audioOutput, MpdTag * tag) {
while(ogg_stream_flush(&(sd->os), &(sd->og)))
{
if(write_page(sd) < 0) return -1;
if(write_page(sd) < 0) return;
}
}