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
75aace48
Commit
75aace48
authored
Feb 19, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addons: don't detach thread (fix #10717,#10719)
parent
8cb84710
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
src/misc/addons.c
src/misc/addons.c
+8
-9
No files found.
src/misc/addons.c
View file @
75aace48
...
...
@@ -47,7 +47,7 @@ struct addons_manager_private_t
struct
{
vlc_thread_t
*
p_
thread
;
vlc_thread_t
thread
;
bool
b_live
;
vlc_mutex_t
lock
;
char
*
psz_uri_hint
;
/* uri hint for non repo based install */
...
...
@@ -56,7 +56,7 @@ struct addons_manager_private_t
struct
{
vlc_thread_t
*
p_
thread
;
vlc_thread_t
thread
;
bool
b_live
;
vlc_mutex_t
lock
;
DECL_ARRAY
(
addon_entry_t
*
)
entries
;
...
...
@@ -146,7 +146,6 @@ addons_manager_t *addons_manager_New( vlc_object_t *p_this )
#define INIT_QUEUE( name ) \
p_manager->p_priv->name.b_live = false;\
p_manager->p_priv->name.p_thread = NULL;\
vlc_mutex_init( &p_manager->p_priv->name.lock );\
ARRAY_INIT( p_manager->p_priv->name.entries );
...
...
@@ -167,12 +166,12 @@ void addons_manager_Delete( addons_manager_t *p_manager )
{
vlc_mutex_lock
(
&
p_manager
->
p_priv
->
finder
.
lock
);
if
(
p_manager
->
p_priv
->
finder
.
b_live
)
vlc_cancel
(
*
p_manager
->
p_priv
->
finder
.
p_
thread
);
vlc_cancel
(
p_manager
->
p_priv
->
finder
.
thread
);
vlc_mutex_unlock
(
&
p_manager
->
p_priv
->
finder
.
lock
);
vlc_mutex_lock
(
&
p_manager
->
p_priv
->
installer
.
lock
);
if
(
p_manager
->
p_priv
->
installer
.
b_live
)
vlc_cancel
(
*
p_manager
->
p_priv
->
installer
.
p_
thread
);
vlc_cancel
(
p_manager
->
p_priv
->
installer
.
thread
);
vlc_mutex_unlock
(
&
p_manager
->
p_priv
->
installer
.
lock
);
vlc_event_manager_fini
(
p_manager
->
p_event_manager
);
...
...
@@ -210,8 +209,8 @@ void addons_manager_Gather( addons_manager_t *p_manager, const char *psz_uri )
}
if
(
!
p_manager
->
p_priv
->
finder
.
b_live
)
{
if
(
vlc_clone
_detach
(
p_manager
->
p_priv
->
finder
.
p_
thread
,
FinderThread
,
p_manager
,
VLC_THREAD_PRIORITY_LOW
)
)
if
(
vlc_clone
(
&
p_manager
->
p_priv
->
finder
.
thread
,
FinderThread
,
p_manager
,
VLC_THREAD_PRIORITY_LOW
)
)
msg_Err
(
p_manager
->
p_priv
->
p_parent
,
"cannot spawn entries provider thread"
);
else
...
...
@@ -491,8 +490,8 @@ static int InstallEntry( addons_manager_t *p_manager, addon_entry_t *p_entry )
ARRAY_APPEND
(
p_manager
->
p_priv
->
installer
.
entries
,
p_entry
);
if
(
!
p_manager
->
p_priv
->
installer
.
b_live
)
{
if
(
vlc_clone
_detach
(
p_manager
->
p_priv
->
installer
.
p_
thread
,
InstallerThread
,
p_manager
,
VLC_THREAD_PRIORITY_LOW
)
)
if
(
vlc_clone
(
&
p_manager
->
p_priv
->
installer
.
thread
,
InstallerThread
,
p_manager
,
VLC_THREAD_PRIORITY_LOW
)
)
msg_Err
(
p_manager
->
p_priv
->
p_parent
,
"cannot spawn addons installer thread"
);
else
...
...
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