aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-10-25 22:41:46 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-10-25 22:41:46 +0000
commita2dbae4884e83827b927d0181012d0759c9b0693 (patch)
tree6b72d2fb5686e54c7a848b71c10b294df4ed8fb4
parent0da404ebb2a61677eed22abc0add7964ded73937 (diff)
downloadmpd-a2dbae4884e83827b927d0181012d0759c9b0693.tar.gz
mpd-a2dbae4884e83827b927d0181012d0759c9b0693.tar.xz
mpd-a2dbae4884e83827b927d0181012d0759c9b0693.zip
some shout cleanups
git-svn-id: https://svn.musicpd.org/mpd/trunk@2343 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/audioOutput_shout.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audioOutput_shout.c b/src/audioOutput_shout.c
index b33cc5820..2283aef35 100644
--- a/src/audioOutput_shout.c
+++ b/src/audioOutput_shout.c
@@ -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;
}
}