Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
d55b0261
Commit
d55b0261
authored
Mar 03, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I really have had enough with this getaddrinfo crashes.
parent
73317f34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+4
-3
No files found.
src/network/getaddrinfo.c
View file @
d55b0261
...
...
@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#define _WIN32_WINNT 0x501
#include <vlc/vlc.h>
#include <stddef.h>
/* size_t */
...
...
@@ -450,7 +451,7 @@ getaddrinfo (const char *node, const char *service,
#endif
/* if !HAVE_GETADDRINFO */
#endif
#if defined( WIN32 ) && !defined( UNDER_CE )
#if
0 &&
defined( WIN32 ) && !defined( UNDER_CE )
/*
* Here is the kind of kludge you need to keep binary compatibility among
* varying OS versions...
...
...
@@ -641,7 +642,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
{
hints
.
ai_flags
|=
AI_NUMERICHOST
;
if
(
ws2_
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
)
==
0
)
if
(
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
)
==
0
)
return
0
;
hints
.
ai_flags
&=
~
AI_NUMERICHOST
;
...
...
@@ -675,7 +676,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
var_Get
(
p_this
->
p_libvlc
,
"getaddrinfo_mutex"
,
&
lock
);
vlc_mutex_lock
(
lock
.
p_address
);
int
ret
=
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
ret
=
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
vlc_mutex_unlock
(
lock
.
p_address
);
return
ret
;
#endif
...
...
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