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
c37297d2
Commit
c37297d2
authored
Oct 16, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better thread-safety in previous commit
parent
a8497048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/misc/getaddrinfo.c
src/misc/getaddrinfo.c
+3
-3
No files found.
src/misc/getaddrinfo.c
View file @
c37297d2
...
...
@@ -662,13 +662,13 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
# ifdef AI_IDN
/* Run-time I18n Domain Names support */
{
static
int
i_idn
=
AI_IDN
;
/* beware of thread-safety */
static
vlc_bool_t
i_idn
=
VLC_TRUE
;
/* beware of thread-safety */
if
(
i_idn
)
{
int
i_ret
;
hints
.
ai_flags
|=
i_idn
;
hints
.
ai_flags
|=
AI_IDN
;
i_ret
=
getaddrinfo
(
psz_node
,
psz_service
,
&
hints
,
res
);
if
(
i_ret
!=
EAI_BADFLAGS
)
...
...
@@ -678,7 +678,7 @@ int vlc_getaddrinfo( vlc_object_t *p_this, const char *node,
/* NOTE: Using i_idn here would not be thread-safe */
hints
.
ai_flags
&=
~
AI_IDN
;
i_idn
=
0
;
i_idn
=
VLC_FALSE
;
msg_Dbg
(
p_this
,
"I18n Domain Names not supported - disabled"
);
}
}
...
...
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