aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/audio.c1
-rw-r--r--src/audioOutput_ao.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/audio.c b/src/audio.c
index 446eff40e..aba275f2f 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -145,6 +145,7 @@ int isCurrentAudioFormat(AudioFormat * audioFormat) {
int openAudioDevice(AudioFormat * audioFormat) {
if(!aoOutput->open || !isCurrentAudioFormat(audioFormat)) {
+ copyAudioFormat(&audio_format, audioFormat);
return openAudioOutput(aoOutput, audioFormat);
}
diff --git a/src/audioOutput_ao.c b/src/audioOutput_ao.c
index 57b45a6fa..efba88529 100644
--- a/src/audioOutput_ao.c
+++ b/src/audioOutput_ao.c
@@ -190,7 +190,7 @@ static int audioOutputAo_play(AudioOutput * audioOutput, char * playChunk,
AoData * ad = (AoData *)audioOutput->data;
if(ad->device==NULL) {
- ERROR("trying to play w/o the audio device being open!\n");
+ ERROR("trying to play w/o the ao device being open!\n");
return -1;
}