Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
449e9841
Commit
449e9841
authored
Feb 14, 2020
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/libsrt: use listen_timeout for listening
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
7cc7680a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
libsrt.c
libavformat/libsrt.c
+4
-9
No files found.
libavformat/libsrt.c
View file @
449e9841
...
...
@@ -227,14 +227,9 @@ static int libsrt_listen(int eid, int fd, const struct sockaddr *addr, socklen_t
if
(
ret
)
return
libsrt_neterrno
(
h
);
while
((
ret
=
libsrt_network_wait_fd_timeout
(
h
,
eid
,
fd
,
1
,
timeout
,
&
h
->
interrupt_callback
)))
{
switch
(
ret
)
{
case
AVERROR
(
ETIMEDOUT
):
continue
;
default:
return
ret
;
}
}
ret
=
libsrt_network_wait_fd_timeout
(
h
,
eid
,
fd
,
1
,
timeout
,
&
h
->
interrupt_callback
);
if
(
ret
<
0
)
return
ret
;
ret
=
srt_accept
(
fd
,
NULL
,
NULL
);
if
(
ret
<
0
)
...
...
@@ -434,7 +429,7 @@ static int libsrt_setup(URLContext *h, const char *uri, int flags)
if
(
s
->
mode
==
SRT_MODE_LISTENER
)
{
// multi-client
if
((
ret
=
libsrt_listen
(
s
->
eid
,
fd
,
cur_ai
->
ai_addr
,
cur_ai
->
ai_addrlen
,
h
,
op
en_timeout
))
<
0
)
if
((
ret
=
libsrt_listen
(
s
->
eid
,
fd
,
cur_ai
->
ai_addr
,
cur_ai
->
ai_addrlen
,
h
,
s
->
list
en_timeout
))
<
0
)
goto
fail1
;
fd
=
ret
;
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment