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
8e38b4f8
Commit
8e38b4f8
authored
Dec 13, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixer/alsa: use BlockingCall() instead of EventLoop::AddCall()
This is safer, and works without epoll(). Fixes a build failure with uClibc, which does not support epoll().
parent
db4ae192
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
NEWS
NEWS
+2
-0
AlsaMixerPlugin.cxx
src/mixer/AlsaMixerPlugin.cxx
+2
-1
No files found.
NEWS
View file @
8e38b4f8
...
...
@@ -4,6 +4,8 @@ ver 0.18.6 (not yet released)
* output
- openal: fix build failure on Mac OS X
- osx: fix build failure
* mixer
- alsa: fix build failure with uClibc
* accept files without metadata
ver 0.18.5 (2013/11/23)
...
...
src/mixer/AlsaMixerPlugin.cxx
View file @
8e38b4f8
...
...
@@ -24,6 +24,7 @@
#include "Main.hxx"
#include "event/MultiSocketMonitor.hxx"
#include "event/Loop.hxx"
#include "event/Call.hxx"
#include "util/ASCII.hxx"
#include "util/ReusableArray.hxx"
#include "util/Error.hxx"
...
...
@@ -46,7 +47,7 @@ class AlsaMixerMonitor final : private MultiSocketMonitor {
public
:
AlsaMixerMonitor
(
EventLoop
&
_loop
,
snd_mixer_t
*
_mixer
)
:
MultiSocketMonitor
(
_loop
),
mixer
(
_mixer
)
{
_loop
.
AddCall
(
[
this
](){
InvalidateSockets
();
});
BlockingCall
(
_loop
,
[
this
](){
InvalidateSockets
();
});
}
private
:
...
...
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