Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
86614c50
Commit
86614c50
authored
Aug 02, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net_Listen: don't print NULL
parent
33fbd253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/network/io.c
src/network/io.c
+4
-2
No files found.
src/network/io.c
View file @
86614c50
...
@@ -136,12 +136,14 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
...
@@ -136,12 +136,14 @@ int *net_Listen (vlc_object_t *p_this, const char *psz_host,
hints
.
ai_protocol
=
protocol
;
hints
.
ai_protocol
=
protocol
;
hints
.
ai_flags
=
AI_PASSIVE
;
hints
.
ai_flags
=
AI_PASSIVE
;
msg_Dbg
(
p_this
,
"net: listening to %s port %d"
,
psz_host
,
i_port
);
msg_Dbg
(
p_this
,
"net: listening to %s port %d"
,
(
psz_host
!=
NULL
)
?
psz_host
:
"*"
,
i_port
);
int
i_val
=
vlc_getaddrinfo
(
p_this
,
psz_host
,
i_port
,
&
hints
,
&
res
);
int
i_val
=
vlc_getaddrinfo
(
p_this
,
psz_host
,
i_port
,
&
hints
,
&
res
);
if
(
i_val
)
if
(
i_val
)
{
{
msg_Err
(
p_this
,
"Cannot resolve %s port %d : %s"
,
psz_host
,
i_port
,
msg_Err
(
p_this
,
"Cannot resolve %s port %d : %s"
,
(
psz_host
!=
NULL
)
?
psz_host
:
""
,
i_port
,
gai_strerror
(
i_val
));
gai_strerror
(
i_val
));
return
NULL
;
return
NULL
;
}
}
...
...
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