From a05d0d5d94412dfcc7b01ca6941df1d183676926 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 22 Oct 2009 17:12:32 +0200 Subject: [PATCH] audio: removed function finishAudioConfig() There's no point in clearing the audio format before exiting. --- src/audio.c | 5 ----- src/audio.h | 2 -- src/main.c | 1 - 3 files changed, 8 deletions(-) diff --git a/src/audio.c b/src/audio.c index 13f128eeb..a0259cb37 100644 --- a/src/audio.c +++ b/src/audio.c @@ -54,8 +54,3 @@ void initAudioConfig(void) g_error("error parsing \"%s\" at line %i: %s", CONF_AUDIO_OUTPUT_FORMAT, param->line, error->message); } - -void finishAudioConfig(void) -{ - audio_format_clear(&configured_audio_format); -} diff --git a/src/audio.h b/src/audio.h index 4d80ee0e6..4b80cfd27 100644 --- a/src/audio.h +++ b/src/audio.h @@ -30,6 +30,4 @@ void getOutputAudioFormat(const struct audio_format *inFormat, /* make sure initPlayerData is called before this function!! */ void initAudioConfig(void); -void finishAudioConfig(void); - #endif diff --git a/src/main.c b/src/main.c index 78964e88d..4b61ab39e 100644 --- a/src/main.c +++ b/src/main.c @@ -407,7 +407,6 @@ int main(int argc, char *argv[]) input_stream_global_finish(); finishNormalization(); audio_output_all_finish(); - finishAudioConfig(); volume_finish(); mapper_finish(); path_global_finish();