aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 19:30:13 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 19:30:13 +0100
commit6b09e4daefec2db743e4a0a9d7ff4ad86004d036 (patch)
tree1b7bd9fd30f8a14071438cbf2576147b9f02e7ff /src
parent4bc2def15c5e678ce4871cdcf97cb50887c6468a (diff)
downloadmpd-6b09e4daefec2db743e4a0a9d7ff4ad86004d036.tar.gz
mpd-6b09e4daefec2db743e4a0a9d7ff4ad86004d036.tar.xz
mpd-6b09e4daefec2db743e4a0a9d7ff4ad86004d036.zip
input_stream: added input_stream_global_finish()
The hook input_stream_global_finish() deinitializes global structures of all input stream implementations.
Diffstat (limited to 'src')
-rw-r--r--src/inputStream.c4
-rw-r--r--src/inputStream.h2
-rw-r--r--src/main.c1
3 files changed, 7 insertions, 0 deletions
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();