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
ec408ca6
Commit
ec408ca6
authored
Jan 30, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/pulse: fix crash during auto-detection
The PulseOutput needs to be "enabled" before WaitConnection() may be called. Closes #207
parent
ea66cdd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
NEWS
NEWS
+2
-0
PulseOutputPlugin.cxx
src/output/plugins/PulseOutputPlugin.cxx
+4
-0
No files found.
NEWS
View file @
ec408ca6
ver 0.20.16 (not yet released)
ver 0.20.16 (not yet released)
* output
- pulse: fix crash during auto-detection
* database
* database
- simple: fix search within mount points
- simple: fix search within mount points
* fix crash in debug build on Haiku and other operating systems
* fix crash in debug build on Haiku and other operating systems
...
...
src/output/plugins/PulseOutputPlugin.cxx
View file @
ec408ca6
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
#include "../Wrapper.hxx"
#include "../Wrapper.hxx"
#include "mixer/MixerList.hxx"
#include "mixer/MixerList.hxx"
#include "mixer/plugins/PulseMixerPlugin.hxx"
#include "mixer/plugins/PulseMixerPlugin.hxx"
#include "util/ScopeExit.hxx"
#include "Log.hxx"
#include "Log.hxx"
#include <pulse/thread-mainloop.h>
#include <pulse/thread-mainloop.h>
...
@@ -854,7 +855,10 @@ PulseOutput::TestDefaultDevice()
...
@@ -854,7 +855,10 @@ PulseOutput::TestDefaultDevice()
try
{
try
{
const
ConfigBlock
empty
;
const
ConfigBlock
empty
;
PulseOutput
po
(
empty
);
PulseOutput
po
(
empty
);
po
.
Enable
();
AtScopeExit
(
&
po
)
{
po
.
Disable
();
};
po
.
WaitConnection
();
po
.
WaitConnection
();
return
true
;
return
true
;
}
catch
(
const
std
::
runtime_error
&
e
)
{
}
catch
(
const
std
::
runtime_error
&
e
)
{
return
false
;
return
false
;
...
...
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