Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b1e53a17
Commit
b1e53a17
authored
Feb 06, 2010
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some locking.
parent
f37a79b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
src/input/vlm.c
src/input/vlm.c
+4
-0
src/input/vlmshell.c
src/input/vlmshell.c
+2
-0
No files found.
src/input/vlm.c
View file @
b1e53a17
...
...
@@ -106,7 +106,9 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_cmd,
}
vlm_SendEventMediaInstanceState
(
p_vlm
,
p_media
->
cfg
.
id
,
p_media
->
cfg
.
psz_name
,
psz_instance_name
,
var_GetInteger
(
p_input
,
"state"
)
);
vlc_mutex_lock
(
&
p_vlm
->
lock_manage
);
vlc_cond_signal
(
&
p_vlm
->
wait_manage
);
vlc_mutex_unlock
(
&
p_vlm
->
lock_manage
);
}
return
VLC_SUCCESS
;
}
...
...
@@ -216,7 +218,9 @@ static void vlm_Destructor( vlm_t *p_vlm )
vlm_ControlInternal
(
p_vlm
,
VLM_CLEAR_SCHEDULES
);
TAB_CLEAN
(
p_vlm
->
schedule
,
p_vlm
->
schedule
);
vlc_mutex_lock
(
&
p_vlm
->
lock_manage
);
vlc_cond_signal
(
&
p_vlm
->
wait_manage
);
vlc_mutex_unlock
(
&
p_vlm
->
lock_manage
);
libvlc_priv
(
p_vlm
->
p_libvlc
)
->
p_vlm
=
NULL
;
vlc_object_kill
(
p_vlm
);
...
...
src/input/vlmshell.c
View file @
b1e53a17
...
...
@@ -995,7 +995,9 @@ static vlm_schedule_sys_t *vlm_ScheduleNew( vlm_t *vlm, const char *psz_name )
TAB_APPEND
(
vlm
->
i_schedule
,
vlm
->
schedule
,
p_sched
);
vlc_mutex_lock
(
&
vlm
->
lock_manage
);
vlc_cond_signal
(
&
vlm
->
wait_manage
);
vlc_mutex_unlock
(
&
vlm
->
lock_manage
);
return
p_sched
;
}
...
...
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