Commit 6b09e4da authored by Max Kellermann's avatar Max Kellermann

input_stream: added input_stream_global_finish()

The hook input_stream_global_finish() deinitializes global structures of all input stream implementations.
parent 4bc2def1
...@@ -29,6 +29,10 @@ void initInputStream(void) ...@@ -29,6 +29,10 @@ void initInputStream(void)
inputStream_initHttp(); inputStream_initHttp();
} }
void input_stream_global_finish(void)
{
}
int openInputStream(struct input_stream *inStream, char *url) int openInputStream(struct input_stream *inStream, char *url)
{ {
inStream->ready = 0; inStream->ready = 0;
......
...@@ -47,6 +47,8 @@ struct input_stream { ...@@ -47,6 +47,8 @@ struct input_stream {
void initInputStream(void); void initInputStream(void);
void input_stream_global_finish(void);
int isUrlSaneForInputStream(char *url); int isUrlSaneForInputStream(char *url);
/* if an error occurs for these 3 functions, then -1 is returned and errno /* if an error occurs for these 3 functions, then -1 is returned and errno
......
...@@ -475,6 +475,7 @@ int main(int argc, char *argv[]) ...@@ -475,6 +475,7 @@ int main(int argc, char *argv[])
deinit_main_notify(); deinit_main_notify();
input_stream_global_finish();
finishNormalization(); finishNormalization();
finishAudioDriver(); finishAudioDriver();
finishAudioConfig(); finishAudioConfig();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment