Calling the init function will become mandatory at some later
point. By calling it, more heavy network init (such as SSL/TLS
library init) can be done once at startup, instead of implicitly
when used (which could lead to it being done a number of times).
Signed-off-by: Martin Storsjö <martin@martin.st>
#if CONFIG_AVFILTER
avfilter_uninit();
#endif
+ avformat_network_deinit();
if (received_sigterm) {
av_log(NULL, AV_LOG_INFO, "Received signal %d: terminating.\n",
avfilter_register_all();
#endif
av_register_all();
+ avformat_network_init();
avio_set_interrupt_cb(decode_interrupt_cb);
#if CONFIG_AVFILTER
avfilter_uninit();
#endif
+ avformat_network_deinit();
if (show_status)
printf("\n");
SDL_Quit();
avfilter_register_all();
#endif
av_register_all();
+ avformat_network_init();
init_opts();
parse_loglevel(argc, argv, options);
av_register_all();
+ avformat_network_init();
init_opts();
#if CONFIG_AVDEVICE
avdevice_register_all();
ret = probe_file(input_filename);
+ avformat_network_deinit();
+
return ret;
}
parse_loglevel(argc, argv, options);
av_register_all();
+ avformat_network_init();
show_banner();
#if CONFIG_AVFILTER
avfilter_uninit();
#endif
+ avformat_network_deinit();
if (received_sigterm) {
fprintf(stderr,
avfilter_register_all();
#endif
av_register_all();
+ avformat_network_init();
avio_set_interrupt_cb(decode_interrupt_cb);