Commit aa2d56c8 authored by Warren Dukes's avatar Warren Dukes

fix for bastard mp3 streams

git-svn-id: https://svn.musicpd.org/mpd/trunk@1268 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 6a16e08f
......@@ -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)
{
......
......@@ -47,10 +47,6 @@ InputPlugin * getInputPluginFromMimeType(char * mimeType);
InputPlugin * getInputPluginFromName(char * name);
/* this is needed b/c shoutcast and such don't indicate the proper mime type
and don't have a suffix in the url! */
InputPlugin * getDefaultInputPlugin();
/* this is where we "load" all the "plugins" ;-) */
void initInputPlugins();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment