From aa2d56c81c3c7e83f827f6292bc5ec4f44881b93 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 1 Jun 2004 01:07:02 +0000 Subject: fix for bastard mp3 streams git-svn-id: https://svn.musicpd.org/mpd/trunk@1268 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/decode.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/decode.c') diff --git a/src/decode.c b/src/decode.c index b361b62f3..d403c5e25 100644 --- a/src/decode.c +++ b/src/decode.c @@ -304,6 +304,11 @@ void decodeStart(PlayerControl * pc, OutputBuffer * cb, DecoderControl * dc) { plugin = getInputPluginFromSuffix( getSuffix(dc->utf8url)); } + /* this is needed for bastard streams that don't have a suffix + or set the mimeType */ + if(plugin == NULL) { + plugin = getInputPluginFromName("mp3"); + } if(plugin && (plugin->streamTypes & INPUT_PLUGIN_STREAM_URL) && plugin->streamDecodeFunc) { -- cgit v1.2.3