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
c0a2676e
Commit
c0a2676e
authored
May 28, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not serialize DNS queries on Win32, that's slooow!
parent
8b27d7c2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
src/network/getaddrinfo.c
src/network/getaddrinfo.c
+2
-15
No files found.
src/network/getaddrinfo.c
View file @
c0a2676e
...
...
@@ -674,8 +674,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
hints
.
ai_flags
&=
~
AI_NUMERICHOST
;
}
#endif
#if defined (HAVE_GETADDRINFO)
# ifdef AI_IDN
#ifdef AI_IDN
/* Run-time I18n Domain Names support */
hints
.
ai_flags
|=
AI_IDN
;
int
ret
=
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
...
...
@@ -684,20 +683,8 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
/* IDN not available: disable and retry without it */
hints
.
ai_flags
&=
~
AI_IDN
;
# endif
return
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
#else
int
ret
;
vlc_value_t
lock
;
var_Create
(
p_this
->
p_libvlc
,
"getaddrinfo_mutex"
,
VLC_VAR_MUTEX
);
var_Get
(
p_this
->
p_libvlc
,
"getaddrinfo_mutex"
,
&
lock
);
vlc_mutex_lock
(
lock
.
p_address
);
ret
=
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
vlc_mutex_unlock
(
lock
.
p_address
);
return
ret
;
#endif
return
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
}
...
...
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