From 776f2bb91a5e31a385ee0a200df907e9acb0de87 Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Sun, 6 Nov 2011 02:47:48 +0200 Subject: Call avformat_network_init/deinit in the programs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ö --- avprobe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'avprobe.c') diff --git a/avprobe.c b/avprobe.c index 99ec1aa08e..992f07c5cf 100644 --- a/avprobe.c +++ b/avprobe.c @@ -399,6 +399,7 @@ int main(int argc, char **argv) parse_loglevel(argc, argv, options); av_register_all(); + avformat_network_init(); init_opts(); #if CONFIG_AVDEVICE avdevice_register_all(); @@ -416,5 +417,7 @@ int main(int argc, char **argv) ret = probe_file(input_filename); + avformat_network_deinit(); + return ret; } -- cgit v1.2.3