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
ea639269
Commit
ea639269
authored
Jun 26, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/wildmidi: throw PluginUnavailable on WildMidi_Init() error
Closes
https://github.com/MusicPlayerDaemon/MPD/issues/589
parent
0abaa3ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
NEWS
NEWS
+2
-0
WildmidiDecoderPlugin.cxx
src/decoder/plugins/WildmidiDecoderPlugin.cxx
+9
-2
No files found.
NEWS
View file @
ea639269
ver 0.21.11 (not yet released)
* decoder
- wildmidi: log error if library initialization fails
* output
- alsa, osx: fix distortions with DSD_U32 and DoP on 32 bit CPUs
* protocol
...
...
src/decoder/plugins/WildmidiDecoderPlugin.cxx
View file @
ea639269
...
...
@@ -21,6 +21,7 @@
#include "../DecoderAPI.hxx"
#include "tag/Handler.hxx"
#include "util/Domain.hxx"
#include "util/ScopeExit.hxx"
#include "util/StringFormat.hxx"
#include "fs/AllocatedPath.hxx"
#include "fs/FileSystem.hxx"
...
...
@@ -49,8 +50,14 @@ wildmidi_init(const ConfigBlock &block)
utf8
.
c_str
()));
}
return
WildMidi_Init
(
path
.
c_str
(),
wildmidi_audio_format
.
sample_rate
,
0
)
==
0
;
WildMidi_ClearError
();
AtScopeExit
()
{
WildMidi_ClearError
();
};
if
(
WildMidi_Init
(
path
.
c_str
(),
wildmidi_audio_format
.
sample_rate
,
0
)
!=
0
)
throw
PluginUnavailable
(
WildMidi_GetError
());
return
true
;
}
static
void
...
...
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