Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
bd0571c5
Commit
bd0571c5
authored
Jul 12, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc_media_player_get_media: missing lock
parent
2a012ee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/control/media_player.c
src/control/media_player.c
+6
-4
No files found.
src/control/media_player.c
View file @
bd0571c5
...
...
@@ -494,12 +494,14 @@ libvlc_media_player_get_media(
libvlc_media_player_t
*
p_mi
,
libvlc_exception_t
*
p_e
)
{
libvlc_media_t
*
p_m
;
VLC_UNUSED
(
p_e
);
if
(
!
p_mi
->
p_md
)
return
NULL
;
libvlc_media_retain
(
p_mi
->
p_md
);
vlc_mutex_lock
(
&
p_mi
->
object_lock
);
p_m
=
p_mi
->
p_md
;
if
(
p_m
)
libvlc_media_retain
(
p_mi
->
p_md
);
vlc_mutex_unlock
(
&
p_mi
->
object_lock
);
return
p_mi
->
p_md
;
}
...
...
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