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
26c09244
Commit
26c09244
authored
Jun 22, 2016
by
Dimitris Papastamos
Committed by
Max Kellermann
Jun 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sndio: Eliminate remaining goto usage to conform to MPD style
parent
d4f801a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
SndioOutputPlugin.cxx
src/output/plugins/SndioOutputPlugin.cxx
+6
-6
No files found.
src/output/plugins/SndioOutputPlugin.cxx
View file @
26c09244
...
...
@@ -143,7 +143,8 @@ SndioOutput::Open(AudioFormat &audio_format, gcc_unused Error &error)
!
sio_getpar
(
sio_hdl
,
&
par
))
{
error
.
Format
(
sndio_output_domain
,
-
1
,
"Failed to set/get audio params"
);
goto
err
;
sio_close
(
sio_hdl
);
return
false
;
}
if
(
par
.
bits
!=
bits
||
...
...
@@ -154,19 +155,18 @@ SndioOutput::Open(AudioFormat &audio_format, gcc_unused Error &error)
par
.
le
!=
SIO_LE_NATIVE
)
{
error
.
Format
(
sndio_output_domain
,
-
1
,
"Requested audio params cannot be satisfied"
);
goto
err
;
sio_close
(
sio_hdl
);
return
false
;
}
if
(
!
sio_start
(
sio_hdl
))
{
error
.
Format
(
sndio_output_domain
,
-
1
,
"Failed to start audio device"
);
goto
err
;
sio_close
(
sio_hdl
);
return
false
;
}
return
true
;
err
:
sio_close
(
sio_hdl
);
return
false
;
}
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