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
88e49788
Commit
88e49788
authored
Feb 21, 2012
by
Sébastien Escudier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dereference p_libvlc->p_vlm after the media clean up
parent
7cab5a8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/input/vlm.c
src/input/vlm.c
+6
-4
No files found.
src/input/vlm.c
View file @
88e49788
...
...
@@ -214,16 +214,15 @@ void vlm_Delete( vlm_t *p_vlm )
vlc_mutex_lock
(
&
vlm_mutex
);
assert
(
p_vlm
->
users
>
0
);
if
(
--
p_vlm
->
users
==
0
)
{
assert
(
libvlc_priv
(
p_vlm
->
p_libvlc
)
->
p_vlm
==
p_vlm
);
libvlc_priv
(
p_vlm
->
p_libvlc
)
->
p_vlm
=
NULL
;
}
else
p_vlm
=
NULL
;
vlc_mutex_unlock
(
&
vlm_mutex
);
if
(
p_vlm
==
NULL
)
{
vlc_mutex_unlock
(
&
vlm_mutex
);
return
;
}
/* Destroy and release VLM */
vlc_mutex_lock
(
&
p_vlm
->
lock
);
...
...
@@ -242,6 +241,9 @@ void vlm_Delete( vlm_t *p_vlm )
vlc_object_release
(
p_vlm
->
p_vod
);
}
libvlc_priv
(
p_vlm
->
p_libvlc
)
->
p_vlm
=
NULL
;
vlc_mutex_unlock
(
&
vlm_mutex
);
vlc_mutex_lock
(
&
p_vlm
->
lock_manage
);
p_vlm
->
input_state_changed
=
true
;
vlc_cond_signal
(
&
p_vlm
->
wait_manage
);
...
...
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