aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-10 09:14:01 +0200
committerMax Kellermann <max@duempel.org>2011-10-10 10:13:43 +0200
commitbea678a7cda2400d1326f77d58d2083b3dc2162f (patch)
tree7f16f7b19b0e00a9bebe345030520d5ebb47359c
parent1fb3fbb4de11984c708b4b6355b172cda2b94d43 (diff)
downloadmpd-bea678a7cda2400d1326f77d58d2083b3dc2162f.tar.gz
mpd-bea678a7cda2400d1326f77d58d2083b3dc2162f.tar.xz
mpd-bea678a7cda2400d1326f77d58d2083b3dc2162f.zip
audio_format: convert reverse_endian to a "bool"
-rw-r--r--src/audio_format.h6
-rw-r--r--src/filter/convert_filter_plugin.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_format.h b/src/audio_format.h
index 43bfe2d6a..71bd369e9 100644
--- a/src/audio_format.h
+++ b/src/audio_format.h
@@ -75,7 +75,7 @@ struct audio_format {
* nonzero, then samples are stored in the reverse host byte
* order.
*/
- uint8_t reverse_endian;
+ bool reverse_endian;
};
/**
@@ -94,7 +94,7 @@ static inline void audio_format_clear(struct audio_format *af)
af->sample_rate = 0;
af->format = SAMPLE_FORMAT_UNDEFINED;
af->channels = 0;
- af->reverse_endian = 0;
+ af->reverse_endian = false;
}
/**
@@ -108,7 +108,7 @@ static inline void audio_format_init(struct audio_format *af,
af->sample_rate = sample_rate;
af->format = (uint8_t)format;
af->channels = channels;
- af->reverse_endian = 0;
+ af->reverse_endian = false;
}
/**
diff --git a/src/filter/convert_filter_plugin.c b/src/filter/convert_filter_plugin.c
index 757084de1..7acfc3055 100644
--- a/src/filter/convert_filter_plugin.c
+++ b/src/filter/convert_filter_plugin.c
@@ -141,7 +141,7 @@ convert_filter_set(struct filter *_filter,
assert(audio_format_valid(&filter->out_audio_format));
assert(out_audio_format != NULL);
assert(audio_format_valid(out_audio_format));
- assert(filter->in_audio_format.reverse_endian == 0);
+ assert(!filter->in_audio_format.reverse_endian);
filter->out_audio_format = *out_audio_format;
}