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@passwd.hu>
pull/334/head
Marton Balint 5 years ago
parent 449e984192
commit 290a35aefe
  1. 2
      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();

Loading…
Cancel
Save