aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_parser.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-10-21 22:22:23 +0200
committerMax Kellermann <max@duempel.org>2009-10-21 22:22:23 +0200
commit643650dba75becfe572c1b334d1276a1b3f66d41 (patch)
tree5617dd0c2b0890de13a655524181acbb85cad7d0 /src/audio_parser.c
parent8cb6854da4c7966cf45f701dde35ee72fc931e64 (diff)
downloadmpd-643650dba75becfe572c1b334d1276a1b3f66d41.tar.gz
mpd-643650dba75becfe572c1b334d1276a1b3f66d41.tar.xz
mpd-643650dba75becfe572c1b334d1276a1b3f66d41.zip
audio_parser: renamed parameter "error" to "error_r"
It's a double pointer.
Diffstat (limited to '')
-rw-r--r--src/audio_parser.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/audio_parser.c b/src/audio_parser.c
index d29f5f449..2f38e23f6 100644
--- a/src/audio_parser.c
+++ b/src/audio_parser.c
@@ -37,7 +37,8 @@ audio_parser_quark(void)
}
bool
-audio_format_parse(struct audio_format *dest, const char *src, GError **error)
+audio_format_parse(struct audio_format *dest, const char *src,
+ GError **error_r)
{
char *endptr;
unsigned long value;
@@ -50,15 +51,15 @@ audio_format_parse(struct audio_format *dest, const char *src, GError **error)
value = strtoul(src, &endptr, 10);
if (endptr == src) {
- g_set_error(error, audio_parser_quark(), 0,
+ g_set_error(error_r, audio_parser_quark(), 0,
"Sample rate missing");
return false;
} else if (*endptr != ':') {
- g_set_error(error, audio_parser_quark(), 0,
+ g_set_error(error_r, audio_parser_quark(), 0,
"Sample format missing");
return false;
} else if (!audio_valid_sample_rate(value)) {
- g_set_error(error, audio_parser_quark(), 0,
+ g_set_error(error_r, audio_parser_quark(), 0,
"Invalid sample rate: %lu", value);
return false;
}
@@ -70,15 +71,15 @@ audio_format_parse(struct audio_format *dest, const char *src, GError **error)
src = endptr + 1;
value = strtoul(src, &endptr, 10);
if (endptr == src) {
- g_set_error(error, audio_parser_quark(), 0,
+ g_set_error(error_r, audio_parser_quark(), 0,
"Sample format missing");
return false;
} else if (*endptr != ':') {
- g_set_error(error, audio_parser_quark(), 0,
+ g_set_error(error_r, audio_parser_quark(), 0,
"Channel count missing");
return false;
} else if (!audio_valid_sample_format(value)) {
- g_set_error(error, audio_parser_quark(), 0,
+ g_set_error(error_r, audio_parser_quark(), 0,
"Invalid sample format: %lu", value);
return false;
}
@@ -90,7 +91,7 @@ audio_format_parse(struct audio_format *dest, const char *src, GError **error)
src = endptr + 1;
value = strtoul(src, &endptr, 10);
if (*endptr != 0 || !audio_valid_channel_count(value)) {
- g_set_error(error, audio_parser_quark(), 0,
+ g_set_error(error_r, audio_parser_quark(), 0,
"Invalid channel count: %s", src);
return false;
}