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
2f535714
Commit
2f535714
authored
May 29, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
config_PutPsz: reduce lock contention scope
parent
f5abb96d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
src/config/core.c
src/config/core.c
+7
-6
No files found.
src/config/core.c
View file @
2f535714
...
...
@@ -271,16 +271,17 @@ void config_PutPsz( vlc_object_t *p_this,
return
;
}
vlc_rwlock_wrlock
(
&
config_lock
);
char
*
str
;
if
((
psz_value
!=
NULL
)
&&
*
psz_value
)
str
=
strdup
(
psz_value
);
else
str
=
NULL
;
vlc_rwlock_wrlock
(
&
config_lock
);
/* backup old value */
oldval
.
psz_string
=
(
char
*
)
p_config
->
value
.
psz
;
if
((
psz_value
!=
NULL
)
&&
*
psz_value
)
p_config
->
value
.
psz
=
strdup
(
psz_value
);
else
p_config
->
value
.
psz
=
NULL
;
p_config
->
value
.
psz
=
str
;
p_config
->
b_dirty
=
true
;
val
.
psz_string
=
(
char
*
)
p_config
->
value
.
psz
;
...
...
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