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
b961e412
Commit
b961e412
authored
Aug 24, 2009
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
media_list_player: Strictier lock in libvlc_media_list_player_play*().
parent
c1c1ff8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/control/media_list_player.c
src/control/media_list_player.c
+5
-6
No files found.
src/control/media_list_player.c
View file @
b961e412
...
...
@@ -505,14 +505,13 @@ void libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t * p_
lock
(
p_mlp
);
set_current_playing_item
(
p_mlp
,
libvlc_media_list_path_with_root_index
(
i_index
));
libvlc_media_player_play
(
p_mlp
->
p_mi
,
p_e
);
unlock
(
p_mlp
);
/* Send the next item event */
libvlc_event_t
event
;
event
.
type
=
libvlc_MediaListPlayerNextItemSet
;
libvlc_event_send
(
p_mlp
->
p_event_manager
,
&
event
);
libvlc_media_player_play
(
p_mlp
->
p_mi
,
p_e
);
}
/**************************************************************************
...
...
@@ -520,18 +519,18 @@ void libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t * p_
**************************************************************************/
void
libvlc_media_list_player_play_item
(
libvlc_media_list_player_t
*
p_mlp
,
libvlc_media_t
*
p_md
,
libvlc_exception_t
*
p_e
)
{
lock
(
p_mlp
);
libvlc_media_list_path_t
path
=
libvlc_media_list_path_of_item
(
p_mlp
->
p_mlist
,
p_md
);
if
(
!
path
)
{
libvlc_exception_raise
(
p_e
,
"No such item in media list"
);
unlock
(
p_mlp
);
return
;
}
lock
(
p_mlp
);
set_current_playing_item
(
p_mlp
,
path
);
unlock
(
p_mlp
);
set_current_playing_item
(
p_mlp
,
path
);
libvlc_media_player_play
(
p_mlp
->
p_mi
,
p_e
);
unlock
(
p_mlp
);
}
/**************************************************************************
...
...
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