From 6b09e4daefec2db743e4a0a9d7ff4ad86004d036 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Oct 2008 19:30:13 +0100 Subject: input_stream: added input_stream_global_finish() The hook input_stream_global_finish() deinitializes global structures of all input stream implementations. --- src/inputStream.c | 4 ++++ src/inputStream.h | 2 ++ src/main.c | 1 + 3 files changed, 7 insertions(+) (limited to 'src') diff --git a/src/inputStream.c b/src/inputStream.c index c82a16b2e..1c5e027e9 100644 --- a/src/inputStream.c +++ b/src/inputStream.c @@ -29,6 +29,10 @@ void initInputStream(void) inputStream_initHttp(); } +void input_stream_global_finish(void) +{ +} + int openInputStream(struct input_stream *inStream, char *url) { inStream->ready = 0; diff --git a/src/inputStream.h b/src/inputStream.h index 84af9a785..db4d6ff57 100644 --- a/src/inputStream.h +++ b/src/inputStream.h @@ -47,6 +47,8 @@ struct input_stream { void initInputStream(void); +void input_stream_global_finish(void); + int isUrlSaneForInputStream(char *url); /* if an error occurs for these 3 functions, then -1 is returned and errno diff --git a/src/main.c b/src/main.c index ea926ef9e..80f4fecf6 100644 --- a/src/main.c +++ b/src/main.c @@ -475,6 +475,7 @@ int main(int argc, char *argv[]) deinit_main_notify(); + input_stream_global_finish(); finishNormalization(); finishAudioDriver(); finishAudioConfig(); -- cgit v1.2.3