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
fa81ade1
Commit
fa81ade1
authored
Aug 02, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: Don't allow pl_Release(p_playlist) and pl_Yield(p_playlist).
parent
7ca4e3eb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
src/playlist/control.c
src/playlist/control.c
+8
-0
No files found.
src/playlist/control.c
View file @
fa81ade1
...
...
@@ -47,6 +47,10 @@ playlist_t *__pl_Yield( vlc_object_t *p_this )
barrier
();
pl
=
libvlc_priv
(
p_this
->
p_libvlc
)
->
p_playlist
;
assert
(
pl
!=
p_this
/* This does not make sense to yield the playlist
using pl_Yield. use vlc_object_yield in this case */
);
if
(
pl
)
vlc_object_yield
(
pl
);
return
pl
;
...
...
@@ -56,6 +60,10 @@ void __pl_Release( vlc_object_t *p_this )
{
playlist_t
*
pl
=
libvlc_priv
(
p_this
->
p_libvlc
)
->
p_playlist
;
assert
(
pl
!=
NULL
);
assert
(
pl
!=
p_this
/* The rule is that pl_Release() should act on
the same object than pl_Yield() */
);
vlc_object_release
(
pl
);
}
...
...
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