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
4ad0747c
Commit
4ad0747c
authored
Jan 14, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output/alsa: explicitly mention all snd_pcm_state() enums
I want a compiler warning when a new state needs to be considered here.
parent
c5cf6640
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AlsaOutputPlugin.cxx
src/output/plugins/AlsaOutputPlugin.cxx
+3
-3
No files found.
src/output/plugins/AlsaOutputPlugin.cxx
View file @
4ad0747c
...
@@ -803,6 +803,7 @@ AlsaOutput::Recover(int err)
...
@@ -803,6 +803,7 @@ AlsaOutput::Recover(int err)
#if GCC_CHECK_VERSION(7,0)
#if GCC_CHECK_VERSION(7,0)
[[
fallthrough
]];
[[
fallthrough
]];
#endif
#endif
case
SND_PCM_STATE_OPEN
:
case
SND_PCM_STATE_SETUP
:
case
SND_PCM_STATE_SETUP
:
case
SND_PCM_STATE_XRUN
:
case
SND_PCM_STATE_XRUN
:
period_position
=
0
;
period_position
=
0
;
...
@@ -811,12 +812,11 @@ AlsaOutput::Recover(int err)
...
@@ -811,12 +812,11 @@ AlsaOutput::Recover(int err)
case
SND_PCM_STATE_DISCONNECTED
:
case
SND_PCM_STATE_DISCONNECTED
:
break
;
break
;
/* this is no error, so just keep running */
/* this is no error, so just keep running */
case
SND_PCM_STATE_PREPARED
:
case
SND_PCM_STATE_RUNNING
:
case
SND_PCM_STATE_RUNNING
:
case
SND_PCM_STATE_DRAINING
:
err
=
0
;
err
=
0
;
break
;
break
;
default
:
/* unknown state, do nothing */
break
;
}
}
return
err
;
return
err
;
...
...
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