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
6aa6def7
Commit
6aa6def7
authored
Feb 25, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output: audio_output_init() returns bool
Return true/false instead of 1/0.
parent
95127040
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
output_control.h
src/output_control.h
+1
-1
output_init.c
src/output_init.c
+4
-4
No files found.
src/output_control.h
View file @
6aa6def7
...
...
@@ -27,7 +27,7 @@ struct audio_format;
struct
tag
;
struct
config_param
;
int
bool
audio_output_init
(
struct
audio_output
*
ao
,
const
struct
config_param
*
param
);
bool
...
...
src/output_init.c
View file @
6aa6def7
...
...
@@ -41,7 +41,7 @@
if(bp) str = bp->value; \
}
int
bool
audio_output_init
(
struct
audio_output
*
ao
,
const
struct
config_param
*
param
)
{
const
char
*
name
=
NULL
;
...
...
@@ -82,7 +82,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
if
(
plugin
==
NULL
)
{
g_warning
(
"Unable to detect an audio device
\n
"
);
return
0
;
return
false
;
}
name
=
"default detected output"
;
...
...
@@ -116,7 +116,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
format
?
&
ao
->
config_audio_format
:
NULL
,
param
);
if
(
ao
->
data
==
NULL
)
return
0
;
return
false
;
return
1
;
return
true
;
}
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