diff options
author | Martin Storsjö <martin@martin.st> | 2011-11-06 04:47:48 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2011-11-06 20:31:39 +0400 |
commit | 776f2bb91a5e31a385ee0a200df907e9acb0de87 (patch) | |
tree | 8c2b0350a8cca51706c99dab0042d79e7339e042 /ffmpeg.c | |
parent | 3607ed70d5ad44b6614cac27f9c833d24626635e (diff) |
Call avformat_network_init/deinit in the programs
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>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -493,6 +493,7 @@ void exit_program(int ret) #if CONFIG_AVFILTER avfilter_uninit(); #endif + avformat_network_deinit(); if (received_sigterm) { fprintf(stderr, @@ -4367,6 +4368,7 @@ int main(int argc, char **argv) avfilter_register_all(); #endif av_register_all(); + avformat_network_init(); avio_set_interrupt_cb(decode_interrupt_cb); |