[FFmpeg-cvslog] avformat/libsrt: make avformat connect timeout 0 by default

Marton Balint git at videolan.org
Mon Feb 24 01:15:00 EET 2020


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sat Feb 15 11:30:16 2020 +0100| [290a35aefed250a797449c34d2f9e5af0c4e006a] | committer: Marton Balint

avformat/libsrt: make avformat connect timeout 0 by default

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 at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=290a35aefed250a797449c34d2f9e5af0c4e006a
---

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



More information about the ffmpeg-cvslog mailing list