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
7cc7680a
Commit
7cc7680a
authored
Feb 14, 2020
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/libsrt: send non-blocking mode on both the listen and the connect socket
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
86a7b77b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
libsrt.c
libavformat/libsrt.c
+3
-3
No files found.
libavformat/libsrt.c
View file @
7cc7680a
...
...
@@ -249,9 +249,6 @@ static int libsrt_listen_connect(int eid, int fd, const struct sockaddr *addr, s
{
int
ret
;
if
(
libsrt_socket_nonblock
(
fd
,
1
)
<
0
)
av_log
(
h
,
AV_LOG_DEBUG
,
"ff_socket_nonblock failed
\n
"
);
ret
=
srt_connect
(
fd
,
addr
,
addrlen
);
if
(
ret
<
0
)
return
libsrt_neterrno
(
h
);
...
...
@@ -432,6 +429,9 @@ static int libsrt_setup(URLContext *h, const char *uri, int flags)
if
(
s
->
send_buffer_size
>
0
)
{
srt_setsockopt
(
fd
,
SOL_SOCKET
,
SRTO_UDP_SNDBUF
,
&
s
->
send_buffer_size
,
sizeof
(
s
->
send_buffer_size
));
}
if
(
libsrt_socket_nonblock
(
fd
,
1
)
<
0
)
av_log
(
h
,
AV_LOG_DEBUG
,
"libsrt_socket_nonblock failed
\n
"
);
if
(
s
->
mode
==
SRT_MODE_LISTENER
)
{
// multi-client
if
((
ret
=
libsrt_listen
(
s
->
eid
,
fd
,
cur_ai
->
ai_addr
,
cur_ai
->
ai_addrlen
,
h
,
open_timeout
))
<
0
)
...
...
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