Skip to content

Commit

Permalink
avformat/libsrt: make avformat connect timeout 0 by default
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
cus committed Feb 23, 2020
1 parent 449e984 commit 290a35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/libsrt.c
Expand Up @@ -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();
Expand Down

0 comments on commit 290a35a

Please sign in to comment.