fix for bastard mp3 streams

git-svn-id: https://svn.musicpd.org/mpd/trunk@1268 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-06-01 01:07:02 +00:00
parent 6a16e08f9a
commit aa2d56c81c
2 changed files with 5 additions and 4 deletions

View File

@@ -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)
{