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
f07f8f7d
Commit
f07f8f7d
authored
Jun 26, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/wildmidi: add fallbacks for libwildmidi<0.4
Fix build breakage from commit
ea639269
parent
39b40ac1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
WildmidiDecoderPlugin.cxx
src/decoder/plugins/WildmidiDecoderPlugin.cxx
+10
-1
No files found.
src/decoder/plugins/WildmidiDecoderPlugin.cxx
View file @
f07f8f7d
...
...
@@ -47,12 +47,21 @@ wildmidi_init(const ConfigBlock &block)
utf8
.
c_str
()));
}
#ifdef LIBWILDMIDI_VERSION
/* WildMidi_ClearError() requires libwildmidi 0.4 */
WildMidi_ClearError
();
AtScopeExit
()
{
WildMidi_ClearError
();
};
#endif
if
(
WildMidi_Init
(
path
.
c_str
(),
wildmidi_audio_format
.
sample_rate
,
0
)
!=
0
)
0
)
!=
0
)
{
#ifdef LIBWILDMIDI_VERSION
/* WildMidi_GetError() requires libwildmidi 0.4 */
throw
PluginUnavailable
(
WildMidi_GetError
());
#else
throw
PluginUnavailable
(
"WildMidi_Init() failed"
);
#endif
}
return
true
;
}
...
...
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