Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
54a51559
Commit
54a51559
authored
Jul 13, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: Don't accept more items when if preparser is dead.
parent
1f1e1106
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/playlist/control.c
src/playlist/control.c
+17
-0
No files found.
src/playlist/control.c
View file @
54a51559
...
@@ -181,6 +181,11 @@ int playlist_PreparseEnqueue( playlist_t *p_playlist,
...
@@ -181,6 +181,11 @@ int playlist_PreparseEnqueue( playlist_t *p_playlist,
input_item_t
*
p_item
)
input_item_t
*
p_item
)
{
{
vlc_object_lock
(
p_playlist
->
p_preparse
);
vlc_object_lock
(
p_playlist
->
p_preparse
);
if
(
!
vlc_object_alive
(
p_playlist
->
p_preparse
)
)
{
vlc_object_unlock
(
p_playlist
->
p_preparse
);
return
VLC_EGENERIC
;
}
vlc_gc_incref
(
p_item
);
vlc_gc_incref
(
p_item
);
INSERT_ELEM
(
p_playlist
->
p_preparse
->
pp_waiting
,
INSERT_ELEM
(
p_playlist
->
p_preparse
->
pp_waiting
,
p_playlist
->
p_preparse
->
i_waiting
,
p_playlist
->
p_preparse
->
i_waiting
,
...
@@ -198,6 +203,12 @@ int playlist_PreparseEnqueueItem( playlist_t *p_playlist,
...
@@ -198,6 +203,12 @@ int playlist_PreparseEnqueueItem( playlist_t *p_playlist,
{
{
vlc_object_lock
(
p_playlist
);
vlc_object_lock
(
p_playlist
);
vlc_object_lock
(
p_playlist
->
p_preparse
);
vlc_object_lock
(
p_playlist
->
p_preparse
);
if
(
!
vlc_object_alive
(
p_playlist
->
p_preparse
)
)
{
vlc_object_unlock
(
p_playlist
->
p_preparse
);
vlc_object_unlock
(
p_playlist
);
return
VLC_EGENERIC
;
}
PreparseEnqueueItemSub
(
p_playlist
,
p_item
);
PreparseEnqueueItemSub
(
p_playlist
,
p_item
);
vlc_object_unlock
(
p_playlist
->
p_preparse
);
vlc_object_unlock
(
p_playlist
->
p_preparse
);
vlc_object_unlock
(
p_playlist
);
vlc_object_unlock
(
p_playlist
);
...
@@ -210,6 +221,12 @@ int playlist_AskForArtEnqueue( playlist_t *p_playlist,
...
@@ -210,6 +221,12 @@ int playlist_AskForArtEnqueue( playlist_t *p_playlist,
int
i
;
int
i
;
vlc_object_lock
(
p_playlist
->
p_fetcher
);
vlc_object_lock
(
p_playlist
->
p_fetcher
);
if
(
!
vlc_object_alive
(
p_playlist
->
p_fetcher
)
)
{
vlc_object_unlock
(
p_playlist
->
p_fetcher
);
return
VLC_EGENERIC
;
}
for
(
i
=
0
;
i
<
p_playlist
->
p_fetcher
->
i_waiting
;
i
++
);
for
(
i
=
0
;
i
<
p_playlist
->
p_fetcher
->
i_waiting
;
i
++
);
vlc_gc_incref
(
p_item
);
vlc_gc_incref
(
p_item
);
INSERT_ELEM
(
p_playlist
->
p_fetcher
->
pp_waiting
,
INSERT_ELEM
(
p_playlist
->
p_fetcher
->
pp_waiting
,
...
...
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