aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio.c b/src/audio.c
index 203c37246..30d9277e6 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -323,14 +323,13 @@ static int flushAudioBuffer(void)
int openAudioDevice(AudioFormat * audioFormat)
{
- int isCurrentFormat = isCurrentAudioFormat(audioFormat);
int ret = -1;
int i;
if (!audioOutputArray)
return -1;
- if (!audioOpened || !isCurrentFormat) {
+ if (!audioOpened || !isCurrentAudioFormat(audioFormat)) {
flushAudioBuffer();
copyAudioFormat(&audio_format, audioFormat);
audioBufferSize = (audio_format.bits >> 3) *