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
5db50dbf
Commit
5db50dbf
authored
Sep 30, 2019
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/udp: add logging context to log
Signed-off-by:
Steven Liu
<
lq@chinaffmpeg.org
>
parent
db99b32a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
udp.c
libavformat/udp.c
+4
-4
No files found.
libavformat/udp.c
View file @
5db50dbf
...
...
@@ -274,7 +274,7 @@ static int udp_set_multicast_sources(URLContext *h,
}
return
0
;
#else
av_log
(
NULL
,
AV_LOG_ERROR
,
av_log
(
h
,
AV_LOG_ERROR
,
"Setting multicast sources only supported for IPv4
\n
"
);
return
AVERROR
(
EINVAL
);
#endif
...
...
@@ -283,7 +283,7 @@ static int udp_set_multicast_sources(URLContext *h,
for
(
i
=
0
;
i
<
nb_sources
;
i
++
)
{
struct
ip_mreq_source
mreqs
;
if
(
sources
[
i
].
ss_family
!=
AF_INET
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Source/block address %d is of incorrect protocol family
\n
"
,
i
+
1
);
av_log
(
h
,
AV_LOG_ERROR
,
"Source/block address %d is of incorrect protocol family
\n
"
,
i
+
1
);
return
AVERROR
(
EINVAL
);
}
...
...
@@ -298,9 +298,9 @@ static int udp_set_multicast_sources(URLContext *h,
include
?
IP_ADD_SOURCE_MEMBERSHIP
:
IP_BLOCK_SOURCE
,
(
const
void
*
)
&
mreqs
,
sizeof
(
mreqs
))
<
0
)
{
if
(
include
)
ff_log_net_error
(
NULL
,
AV_LOG_ERROR
,
"setsockopt(IP_ADD_SOURCE_MEMBERSHIP)"
);
ff_log_net_error
(
h
,
AV_LOG_ERROR
,
"setsockopt(IP_ADD_SOURCE_MEMBERSHIP)"
);
else
ff_log_net_error
(
NULL
,
AV_LOG_ERROR
,
"setsockopt(IP_BLOCK_SOURCE)"
);
ff_log_net_error
(
h
,
AV_LOG_ERROR
,
"setsockopt(IP_BLOCK_SOURCE)"
);
return
ff_neterrno
();
}
}
...
...
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