input_stream: added input_stream_global_finish()

The hook input_stream_global_finish() deinitializes global structures
of all input stream implementations.
This commit is contained in:
Max Kellermann 2008-10-26 19:30:13 +01:00
parent 4bc2def15c
commit 6b09e4daef
3 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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

View File

@ -475,6 +475,7 @@ int main(int argc, char *argv[])
deinit_main_notify();
input_stream_global_finish();
finishNormalization();
finishAudioDriver();
finishAudioConfig();