aboutsummaryrefslogtreecommitdiffstats
path: root/src/decode.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decode.c5
1 files changed, 5 insertions, 0 deletions
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)
{