diff options
Diffstat (limited to 'src/output_control.c')
-rw-r--r-- | src/output_control.c | 8 |
1 files changed, 2 insertions, 6 deletions
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); |