Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
aa2d56c8
Commit
aa2d56c8
authored
Jun 01, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for bastard mp3 streams
git-svn-id:
https://svn.musicpd.org/mpd/trunk@1268
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
6a16e08f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
decode.c
src/decode.c
+5
-0
inputPlugin.h
src/inputPlugin.h
+0
-4
No files found.
src/decode.c
View file @
aa2d56c8
...
...
@@ -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
)
{
...
...
src/inputPlugin.h
View file @
aa2d56c8
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment