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
7b07426b
Commit
7b07426b
authored
Apr 30, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hopefully fix locking issues with wx
parent
43fed3cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/input/control.c
src/input/control.c
+4
-0
src/playlist/playlist.c
src/playlist/playlist.c
+3
-0
No files found.
src/input/control.c
View file @
7b07426b
...
...
@@ -129,7 +129,9 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
if
(
p_playlist
)
{
val
.
i_int
=
p_playlist
->
i_index
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
var_Set
(
p_playlist
,
"item-change"
,
val
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
vlc_object_release
(
p_playlist
);
}
}
...
...
@@ -205,7 +207,9 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
if
(
p_playlist
)
{
val
.
i_int
=
p_playlist
->
i_index
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
var_Set
(
p_playlist
,
"item-change"
,
val
);
vlc_mutex_lock
(
&
p_input
->
stream
.
stream_lock
);
vlc_object_release
(
p_playlist
);
}
}
...
...
src/playlist/playlist.c
View file @
7b07426b
...
...
@@ -184,7 +184,10 @@ void playlist_Command( playlist_t * p_playlist, playlist_command_t i_command,
{
input_StopThread
(
p_playlist
->
p_input
);
val
.
i_int
=
p_playlist
->
i_index
;
/* Does not matter if we unlock here */
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
var_Set
(
p_playlist
,
"item-change"
,
val
);
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
}
break
;
...
...
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