aboutsummaryrefslogtreecommitdiffstats
path: root/src/mp3_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-20 03:44:33 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-20 03:44:33 +0000
commit4db5224b4773c48d9699f21f8bb4629b176fe43b (patch)
tree077b7fc630e4e9e2a5b15291db4248bca3109a49 /src/mp3_decode.c
parent5a4022d878f8cd3a07e427344908b8226587a7f9 (diff)
downloadmpd-4db5224b4773c48d9699f21f8bb4629b176fe43b.tar.gz
mpd-4db5224b4773c48d9699f21f8bb4629b176fe43b.tar.xz
mpd-4db5224b4773c48d9699f21f8bb4629b176fe43b.zip
ogg stream playing! some non-blocking seek bug fixes
git-svn-id: https://svn.musicpd.org/mpd/trunk@1105 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/mp3_decode.c7
1 files changed, 5 insertions, 2 deletions
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));