]> git.sesse.net Git - ffmpeg/commitdiff
avformat/libsrt: make avformat connect timeout 0 by default
authorMarton Balint <cus@passwd.hu>
Sat, 15 Feb 2020 10:30:16 +0000 (11:30 +0100)
committerMarton Balint <cus@passwd.hu>
Sun, 23 Feb 2020 23:13:38 +0000 (00:13 +0100)
Otherwise the user is not able to override the SRT API connect timeout above 5
sec without also setting the timeout option.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/libsrt.c

index f24ce4683127be2d67468353c63f298b3c586f10..2d6fc4b7e7ed400304f1cf4d6f1a50453b6b926e 100644 (file)
@@ -361,7 +361,7 @@ static int libsrt_setup(URLContext *h, const char *uri, int flags)
     int ret;
     char hostname[1024],proto[1024],path[1024];
     char portstr[10];
-    int open_timeout = 5000000;
+    int open_timeout = 0;
     int eid;
 
     eid = srt_epoll_create();