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
9cd2129e
Commit
9cd2129e
authored
Oct 20, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
output_init: renamed parameter "error" to "error_r"
It's a double pointer.
parent
097e200a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
output_control.h
src/output_control.h
+1
-1
output_init.c
src/output_init.c
+7
-7
No files found.
src/output_control.h
View file @
9cd2129e
...
@@ -38,7 +38,7 @@ audio_output_quark(void)
...
@@ -38,7 +38,7 @@ audio_output_quark(void)
bool
bool
audio_output_init
(
struct
audio_output
*
ao
,
const
struct
config_param
*
param
,
audio_output_init
(
struct
audio_output
*
ao
,
const
struct
config_param
*
param
,
GError
**
error
);
GError
**
error
_r
);
/**
/**
* Opens or closes the device, depending on the "enabled" flag.
* Opens or closes the device, depending on the "enabled" flag.
...
...
src/output_init.c
View file @
9cd2129e
...
@@ -121,7 +121,7 @@ audio_output_load_mixer(const struct config_param *param,
...
@@ -121,7 +121,7 @@ audio_output_load_mixer(const struct config_param *param,
bool
bool
audio_output_init
(
struct
audio_output
*
ao
,
const
struct
config_param
*
param
,
audio_output_init
(
struct
audio_output
*
ao
,
const
struct
config_param
*
param
,
GError
**
error
)
GError
**
error
_r
)
{
{
const
struct
audio_output_plugin
*
plugin
=
NULL
;
const
struct
audio_output_plugin
*
plugin
=
NULL
;
...
@@ -130,14 +130,14 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
...
@@ -130,14 +130,14 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
p
=
config_get_block_string
(
param
,
AUDIO_OUTPUT_TYPE
,
NULL
);
p
=
config_get_block_string
(
param
,
AUDIO_OUTPUT_TYPE
,
NULL
);
if
(
p
==
NULL
)
{
if
(
p
==
NULL
)
{
g_set_error
(
error
,
audio_output_quark
(),
0
,
g_set_error
(
error
_r
,
audio_output_quark
(),
0
,
"Missing
\"
type
\"
configuration"
);
"Missing
\"
type
\"
configuration"
);
return
false
;
return
false
;
}
}
plugin
=
audio_output_plugin_get
(
p
);
plugin
=
audio_output_plugin_get
(
p
);
if
(
plugin
==
NULL
)
{
if
(
plugin
==
NULL
)
{
g_set_error
(
error
,
audio_output_quark
(),
0
,
g_set_error
(
error
_r
,
audio_output_quark
(),
0
,
"No such audio output plugin: %s"
,
p
);
"No such audio output plugin: %s"
,
p
);
return
false
;
return
false
;
}
}
...
@@ -145,7 +145,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
...
@@ -145,7 +145,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
ao
->
name
=
config_get_block_string
(
param
,
AUDIO_OUTPUT_NAME
,
ao
->
name
=
config_get_block_string
(
param
,
AUDIO_OUTPUT_NAME
,
NULL
);
NULL
);
if
(
ao
->
name
==
NULL
)
{
if
(
ao
->
name
==
NULL
)
{
g_set_error
(
error
,
audio_output_quark
(),
0
,
g_set_error
(
error
_r
,
audio_output_quark
(),
0
,
"Missing
\"
name
\"
configuration"
);
"Missing
\"
name
\"
configuration"
);
return
false
;
return
false
;
}
}
...
@@ -156,7 +156,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
...
@@ -156,7 +156,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
if
(
p
!=
NULL
)
{
if
(
p
!=
NULL
)
{
bool
success
=
bool
success
=
audio_format_parse
(
&
ao
->
out_audio_format
,
audio_format_parse
(
&
ao
->
out_audio_format
,
p
,
error
);
p
,
error
_r
);
if
(
!
success
)
if
(
!
success
)
return
false
;
return
false
;
}
}
...
@@ -164,7 +164,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
...
@@ -164,7 +164,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
g_warning
(
"No
\"
%s
\"
defined in config file
\n
"
,
g_warning
(
"No
\"
%s
\"
defined in config file
\n
"
,
CONF_AUDIO_OUTPUT
);
CONF_AUDIO_OUTPUT
);
plugin
=
audio_output_detect
(
error
);
plugin
=
audio_output_detect
(
error
_r
);
if
(
plugin
==
NULL
)
if
(
plugin
==
NULL
)
return
false
;
return
false
;
...
@@ -194,7 +194,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
...
@@ -194,7 +194,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param,
ao
->
data
=
ao_plugin_init
(
plugin
,
ao
->
data
=
ao_plugin_init
(
plugin
,
ao
->
config_audio_format
ao
->
config_audio_format
?
&
ao
->
out_audio_format
:
NULL
,
?
&
ao
->
out_audio_format
:
NULL
,
param
,
error
);
param
,
error
_r
);
if
(
ao
->
data
==
NULL
)
if
(
ao
->
data
==
NULL
)
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