diff options
-rw-r--r-- | src/decode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/decode.c b/src/decode.c index ccca3b204..146f5a974 100644 --- a/src/decode.c +++ b/src/decode.c @@ -336,6 +336,7 @@ void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) { &inStream)) continue; ret = plugin->streamDecodeFunc(cb, dc, &inStream); + break; } /* if that fails, try suffix matching the URL: */ @@ -355,6 +356,7 @@ void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) { continue; ret = plugin->streamDecodeFunc( cb, dc, &inStream); + break; } } /* fallback to mp3: */ @@ -382,6 +384,7 @@ void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) { if(plugin->streamDecodeFunc) { ret = plugin->streamDecodeFunc( cb, dc, &inStream); + break; } else if(plugin->fileDecodeFunc) { closeInputStream(&inStream); |