[FFmpeg-devel] [PATCH v2 8/9] avformat/libsrt: make the non-API controlled connect timeout 0 by default
Marton Balint
cus at passwd.hu
Mon Feb 17 02:36:52 EET 2020
Otherwise the user is not able to override the API connect timeout above 5 sec
without setting also timeout.
Signed-off-by: Marton Balint <cus at passwd.hu>
---
libavformat/libsrt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
index f24ce46831..2d6fc4b7e7 100644
--- a/libavformat/libsrt.c
+++ b/libavformat/libsrt.c
@@ -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();
--
2.16.4
More information about the ffmpeg-devel
mailing list