aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-11 07:47:28 +0200
committerMax Kellermann <max@duempel.org>2008-09-11 07:47:28 +0200
commit56cf54e880359d40dae7df460b23101a4f1a77fb (patch)
treea8355909361852235c3cb04fc403f25b6551c604 /src/output_control.c
parenta751011e8cf5bf8cfbcd3f3be9eb424d6569b7e7 (diff)
downloadmpd-56cf54e880359d40dae7df460b23101a4f1a77fb.tar.gz
mpd-56cf54e880359d40dae7df460b23101a4f1a77fb.tar.xz
mpd-56cf54e880359d40dae7df460b23101a4f1a77fb.zip
output: removed audio_output.convertAudioFormat
Instead of checking convertAudioFormat, we can simply check if reqAudioFormat is defined. This saves 4 bytes in the struct.
Diffstat (limited to 'src/output_control.c')
-rw-r--r--src/output_control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output_control.c b/src/output_control.c
index df330ee21..7e181aca2 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -33,7 +33,7 @@ int audio_output_open(struct audio_output *audioOutput,
audioOutput->inAudioFormat = *audioFormat;
- if (audioOutput->convertAudioFormat) {
+ if (audio_format_defined(&audioOutput->reqAudioFormat)) {
audioOutput->outAudioFormat = audioOutput->reqAudioFormat;
} else {
audioOutput->outAudioFormat = audioOutput->inAudioFormat;