test: init input streams cause decoders are using it

This commit is contained in:
Viliam Mateicka 2009-03-03 18:57:59 +01:00 committed by Max Kellermann
parent e7f034dcef
commit 39fb8bebc2
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@ int main(int argc, char **argv)
decoder_name = argv[1];
path = argv[2];
input_stream_global_init();
decoder_plugin_init_all();
plugin = decoder_plugin_from_name(decoder_name);
@ -136,6 +137,7 @@ int main(int argc, char **argv)
tag = decoder_plugin_tag_dup(plugin, path);
decoder_plugin_deinit_all();
input_stream_global_finish();
if (tag == NULL) {
g_printerr("Failed to read tags\n");
return 1;