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
15973bcd
Commit
15973bcd
authored
Mar 09, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to interrupt fetcher thread as soon as possible.
parent
c7688765
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/playlist/fetcher.c
src/playlist/fetcher.c
+14
-0
No files found.
src/playlist/fetcher.c
View file @
15973bcd
...
@@ -101,6 +101,9 @@ void playlist_fetcher_Push( playlist_fetcher_t *p_fetcher, input_item_t *p_item
...
@@ -101,6 +101,9 @@ void playlist_fetcher_Push( playlist_fetcher_t *p_fetcher, input_item_t *p_item
void
playlist_fetcher_Delete
(
playlist_fetcher_t
*
p_fetcher
)
void
playlist_fetcher_Delete
(
playlist_fetcher_t
*
p_fetcher
)
{
{
/* */
vlc_object_kill
(
p_fetcher
);
/* Destroy the item meta-infos fetcher */
/* Destroy the item meta-infos fetcher */
vlc_cancel
(
p_fetcher
->
thread
);
vlc_cancel
(
p_fetcher
->
thread
);
vlc_join
(
p_fetcher
->
thread
,
NULL
);
vlc_join
(
p_fetcher
->
thread
,
NULL
);
...
@@ -396,8 +399,17 @@ static void *Thread( void *p_data )
...
@@ -396,8 +399,17 @@ static void *Thread( void *p_data )
/* Wait that the input item is preparsed if it is being played */
/* Wait that the input item is preparsed if it is being played */
WaitPreparsed
(
p_fetcher
,
p_item
);
WaitPreparsed
(
p_fetcher
,
p_item
);
/* */
if
(
!
vlc_object_alive
(
p_fetcher
)
)
goto
end
;
/* Find art, and download it if needed */
/* Find art, and download it if needed */
int
i_ret
=
FindArt
(
p_fetcher
,
p_item
);
int
i_ret
=
FindArt
(
p_fetcher
,
p_item
);
/* */
if
(
!
vlc_object_alive
(
p_fetcher
)
)
goto
end
;
if
(
i_ret
==
1
)
if
(
i_ret
==
1
)
i_ret
=
DownloadArt
(
p_fetcher
,
p_item
);
i_ret
=
DownloadArt
(
p_fetcher
,
p_item
);
...
@@ -415,6 +427,8 @@ static void *Thread( void *p_data )
...
@@ -415,6 +427,8 @@ static void *Thread( void *p_data )
input_item_SetArtNotFound
(
p_item
,
true
);
input_item_SetArtNotFound
(
p_item
,
true
);
}
}
free
(
psz_name
);
free
(
psz_name
);
end:
vlc_gc_decref
(
p_item
);
vlc_gc_decref
(
p_item
);
vlc_restorecancel
(
canc
);
vlc_restorecancel
(
canc
);
...
...
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