Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
f83fbd59
Commit
f83fbd59
authored
Dec 29, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UDP: use vlc_strerror_c()
parent
4ec3d936
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
modules/access_output/udp.c
modules/access_output/udp.c
+2
-1
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+3
-1
No files found.
modules/access_output/udp.c
View file @
f83fbd59
...
...
@@ -34,6 +34,7 @@
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <vlc_sout.h>
#include <vlc_block.h>
...
...
@@ -443,7 +444,7 @@ static void* ThreadWrite( void *data )
i_to_send
=
i_group
;
}
if
(
send
(
p_sys
->
i_handle
,
p_pk
->
p_buffer
,
p_pk
->
i_buffer
,
0
)
==
-
1
)
msg_Warn
(
p_access
,
"send error: %
m"
);
msg_Warn
(
p_access
,
"send error: %
s"
,
vlc_strerror_c
(
errno
)
);
vlc_cleanup_pop
();
if
(
i_dropped_packets
)
...
...
modules/services_discovery/sap.c
View file @
f83fbd59
...
...
@@ -40,6 +40,7 @@
#include <vlc_network.h>
#include <vlc_charset.h>
#include <errno.h>
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
...
...
@@ -557,7 +558,8 @@ static void *Run( void *data )
i_read
=
net_Read
(
p_sd
,
ufd
[
i
].
fd
,
NULL
,
p_buffer
,
MAX_SAP_BUFFER
,
false
);
if
(
i_read
<
0
)
msg_Warn
(
p_sd
,
"receive error: %m"
);
msg_Warn
(
p_sd
,
"receive error: %s"
,
vlc_strerror_c
(
errno
));
if
(
i_read
>
6
)
{
/* Parse the packet */
...
...
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