test/run_decoder: initialize the input plugins
This commit is contained in:
parent
cfb350f4f0
commit
a2e47d55eb
@ -126,6 +126,7 @@ int main(int argc, char **argv)
|
|||||||
decoder_name = argv[1];
|
decoder_name = argv[1];
|
||||||
decoder.uri = argv[2];
|
decoder.uri = argv[2];
|
||||||
|
|
||||||
|
input_stream_global_init();
|
||||||
decoder_plugin_init_all();
|
decoder_plugin_init_all();
|
||||||
|
|
||||||
decoder.plugin = decoder_plugin_from_name(decoder_name);
|
decoder.plugin = decoder_plugin_from_name(decoder_name);
|
||||||
@ -153,6 +154,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
decoder_plugin_deinit_all();
|
decoder_plugin_deinit_all();
|
||||||
|
input_stream_global_finish();
|
||||||
|
|
||||||
if (!decoder.initialized) {
|
if (!decoder.initialized) {
|
||||||
g_printerr("Decoding failed\n");
|
g_printerr("Decoding failed\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user