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
2bf91a04
Commit
2bf91a04
authored
Dec 13, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/Internal: merge REOPEN and OPEN
parent
2775d747
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
13 deletions
+8
-13
Internal.hxx
src/output/Internal.hxx
+3
-4
OutputControl.cxx
src/output/OutputControl.cxx
+1
-3
OutputThread.cxx
src/output/OutputThread.cxx
+4
-6
No files found.
src/output/Internal.hxx
View file @
2bf91a04
...
...
@@ -48,13 +48,12 @@ struct AudioOutput {
NONE
,
ENABLE
,
DISABLE
,
OPEN
,
/**
*
This command is invoked when the input audio format
* changes.
*
Open the output, or reopen it if it is already
*
open, adjusting for input #AudioFormat
changes.
*/
RE
OPEN
,
OPEN
,
CLOSE
,
PAUSE
,
...
...
src/output/OutputControl.cxx
View file @
2bf91a04
...
...
@@ -138,9 +138,7 @@ AudioOutput::Open(const AudioFormat audio_format, const MusicPipe &mp)
if
(
!
thread
.
IsDefined
())
StartThread
();
CommandWait
(
open
?
Command
::
REOPEN
:
Command
::
OPEN
);
CommandWait
(
Command
::
OPEN
);
const
bool
open2
=
open
;
if
(
open2
&&
mixer
!=
nullptr
)
{
...
...
src/output/OutputThread.cxx
View file @
2bf91a04
...
...
@@ -590,12 +590,10 @@ AudioOutput::Task()
break
;
case
Command
:
:
OPEN
:
Open
();
CommandFinished
();
break
;
case
Command
:
:
REOPEN
:
Reopen
();
if
(
open
)
Reopen
();
else
Open
();
CommandFinished
();
break
;
...
...
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