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
dbe58b27
Commit
dbe58b27
authored
Feb 08, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: fix small race
parent
65ebc4b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lib/media_player.c
lib/media_player.c
+1
-3
No files found.
lib/media_player.c
View file @
dbe58b27
...
...
@@ -933,14 +933,12 @@ int libvlc_media_player_is_playing( libvlc_media_player_t *p_mi )
**************************************************************************/
void
libvlc_media_player_stop
(
libvlc_media_player_t
*
p_mi
)
{
libvlc_state_t
state
=
libvlc_media_player_get_state
(
p_mi
);
lock_input
(
p_mi
);
release_input_thread
(
p_mi
);
/* This will stop the input thread */
/* Force to go to stopped state, in case we were in Ended, or Error
* state. */
if
(
state
!=
libvlc_Stopped
)
if
(
p_mi
->
state
!=
libvlc_Stopped
)
{
set_state
(
p_mi
,
libvlc_Stopped
,
false
);
...
...
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