]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/network.c
avio: Mark the old interrupt callback mechanism as deprecated
[ffmpeg] / libavformat / network.c
index d84dcaf219432bea4cf08dadbd937133ae08c8bd..f8403aef838d446771d16316ffc8e66575c9fdf9 100644 (file)
@@ -119,8 +119,15 @@ void ff_tls_deinit(void)
     avpriv_unlock_avformat();
 }
 
+int ff_network_inited_globally;
+
 int ff_network_init(void)
 {
+    if (!ff_network_inited_globally)
+        av_log(NULL, AV_LOG_WARNING, "Using network protocols without global "
+                                     "network initialization. Please use "
+                                     "avformat_network_init(), this will "
+                                     "become mandatory later.\n");
 #if HAVE_WINSOCK2_H
     WSADATA wsaData;
     if (WSAStartup(MAKEWORD(1,1), &wsaData))