diff mbox series

[FFmpeg-devel,v2,8/9] avformat/libsrt: make the non-API controlled connect timeout 0 by default

Message ID 20200217003653.20027-8-cus@passwd.hu
State New
Headers show
Series [FFmpeg-devel,v2,1/9] avformat/libsrt: fix timeout unit confusion between milisec and microsec
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Marton Balint Feb. 17, 2020, 12:36 a.m. UTC
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@passwd.hu>
---
 libavformat/libsrt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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();