From 4db5224b4773c48d9699f21f8bb4629b176fe43b Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Thu, 20 May 2004 03:44:33 +0000 Subject: ogg stream playing! some non-blocking seek bug fixes git-svn-id: https://svn.musicpd.org/mpd/trunk@1105 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/mp3_decode.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mp3_decode.c') diff --git a/src/mp3_decode.c b/src/mp3_decode.c index 69d336e99..3836af8e2 100644 --- a/src/mp3_decode.c +++ b/src/mp3_decode.c @@ -556,9 +556,12 @@ int mp3_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) { mp3DecodeData data; if(openMp3FromInputStream(inStream, &data, dc) < 0) { - ERROR("Input does not appear to be a mp3 bit stream.\n"); closeInputStream(inStream); - return -1; + if(!dc->stop) { + ERROR("Input does not appear to be a mp3 bit stream.\n"); + return -1; + } + return 0; } initAudioFormatFromMp3DecodeData(&data, &(dc->audioFormat)); -- cgit v1.2.3