aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output_api.h1
-rw-r--r--src/output_control.c8
-rw-r--r--src/output_init.c1
3 files changed, 2 insertions, 8 deletions
diff --git a/src/output_api.h b/src/output_api.h
index d59fa8424..887b57c7c 100644
--- a/src/output_api.h
+++ b/src/output_api.h
@@ -66,7 +66,6 @@ struct audio_output {
ConvState convState;
char *convBuffer;
size_t convBufferLen;
- int sameInAndOutFormats;
void *data;
};
diff --git a/src/output_control.c b/src/output_control.c
index 7e181aca2..26558d3c4 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -44,10 +44,6 @@ int audio_output_open(struct audio_output *audioOutput,
if (!audioOutput->open)
ret = audioOutput->plugin->open(audioOutput);
- audioOutput->sameInAndOutFormats =
- audio_format_equals(&audioOutput->inAudioFormat,
- &audioOutput->outAudioFormat);
-
return ret;
}
@@ -82,9 +78,9 @@ int audio_output_play(struct audio_output *audioOutput,
if (!audioOutput->open)
return -1;
- if (!audioOutput->sameInAndOutFormats) {
+ if (!audio_format_equals(&audioOutput->inAudioFormat,
+ &audioOutput->outAudioFormat))
convertAudioFormat(audioOutput, &playChunk, &size);
- }
ret = audioOutput->plugin->play(audioOutput, playChunk, size);
diff --git a/src/output_init.c b/src/output_init.c
index 0a91565c8..00226f7d8 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -86,7 +86,6 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param)
ao->plugin = plugin;
ao->open = 0;
- ao->sameInAndOutFormats = 0;
ao->convBuffer = NULL;
ao->convBufferLen = 0;