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
8161681d
Commit
8161681d
authored
Sep 08, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove dummy usage of vlc_thread_ready()
It only makes sense if the thread actually initializes something.
parent
a612cf25
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
17 deletions
+5
-17
src/input/input.c
src/input/input.c
+2
-8
src/playlist/thread.c
src/playlist/thread.c
+3
-9
No files found.
src/input/input.c
View file @
8161681d
...
...
@@ -370,7 +370,7 @@ input_thread_t *__input_CreateThreadExtended( vlc_object_t *p_parent,
/* Create thread and wait for its readiness. */
if
(
vlc_thread_create
(
p_input
,
"input"
,
Run
,
VLC_THREAD_PRIORITY_INPUT
,
tru
e
)
)
VLC_THREAD_PRIORITY_INPUT
,
fals
e
)
)
{
input_ChangeState
(
p_input
,
ERROR_S
);
msg_Err
(
p_input
,
"cannot create input thread"
);
...
...
@@ -408,7 +408,7 @@ int __input_Read( vlc_object_t *p_parent, input_item_t *p_item,
else
{
if
(
vlc_thread_create
(
p_input
,
"input"
,
RunAndDestroy
,
VLC_THREAD_PRIORITY_INPUT
,
tru
e
)
)
VLC_THREAD_PRIORITY_INPUT
,
fals
e
)
)
{
input_ChangeState
(
p_input
,
ERROR_S
);
msg_Err
(
p_input
,
"cannot create input thread"
);
...
...
@@ -495,9 +495,6 @@ static void* Run( vlc_object_t *p_this )
input_thread_t
*
p_input
=
(
input_thread_t
*
)
p_this
;
const
int
canc
=
vlc_savecancel
();
/* Signal that the thread is launched */
vlc_thread_ready
(
p_input
);
if
(
Init
(
p_input
)
)
{
/* If we failed, wait before we are killed, and exit */
...
...
@@ -530,9 +527,6 @@ static void* RunAndDestroy( vlc_object_t *p_this )
input_thread_t
*
p_input
=
(
input_thread_t
*
)
p_this
;
const
int
canc
=
vlc_savecancel
();
/* Signal that the thread is launched */
vlc_thread_ready
(
p_input
);
if
(
Init
(
p_input
)
)
goto
exit
;
...
...
src/playlist/thread.c
View file @
8161681d
...
...
@@ -76,7 +76,7 @@ void __playlist_ThreadCreate( vlc_object_t *p_parent )
vlc_object_attach
(
p_playlist
->
p
->
p_preparse
,
p_playlist
);
if
(
vlc_thread_create
(
p_playlist
->
p
->
p_preparse
,
"preparser"
,
RunPreparse
,
VLC_THREAD_PRIORITY_LOW
,
tru
e
)
)
RunPreparse
,
VLC_THREAD_PRIORITY_LOW
,
fals
e
)
)
{
msg_Err
(
p_playlist
,
"cannot spawn preparse thread"
);
vlc_object_release
(
p_playlist
->
p
->
p_preparse
);
...
...
@@ -105,7 +105,7 @@ void __playlist_ThreadCreate( vlc_object_t *p_parent )
if
(
vlc_thread_create
(
p_playlist
->
p
->
p_fetcher
,
"fetcher"
,
RunFetcher
,
VLC_THREAD_PRIORITY_LOW
,
tru
e
)
)
VLC_THREAD_PRIORITY_LOW
,
fals
e
)
)
{
msg_Err
(
p_playlist
,
"cannot spawn secondary preparse thread"
);
vlc_object_release
(
p_playlist
->
p
->
p_fetcher
);
...
...
@@ -114,7 +114,7 @@ void __playlist_ThreadCreate( vlc_object_t *p_parent )
// Start the thread
if
(
vlc_thread_create
(
p_playlist
,
"playlist"
,
RunControlThread
,
VLC_THREAD_PRIORITY_LOW
,
tru
e
)
)
VLC_THREAD_PRIORITY_LOW
,
fals
e
)
)
{
msg_Err
(
p_playlist
,
"cannot spawn playlist thread"
);
vlc_object_release
(
p_playlist
);
...
...
@@ -133,8 +133,6 @@ void __playlist_ThreadCreate( vlc_object_t *p_parent )
static
void
*
RunControlThread
(
vlc_object_t
*
p_this
)
{
playlist_t
*
p_playlist
=
(
playlist_t
*
)
p_this
;
/* Tell above that we're ready */
vlc_thread_ready
(
p_playlist
);
int
canc
=
vlc_savecancel
();
vlc_object_lock
(
p_playlist
);
...
...
@@ -176,8 +174,6 @@ static void* RunPreparse ( vlc_object_t *p_this )
playlist_preparse_t
*
p_obj
=
(
playlist_preparse_t
*
)
p_this
;
int
canc
;
/* Tell above that we're ready */
vlc_thread_ready
(
p_obj
);
canc
=
vlc_savecancel
();
playlist_PreparseLoop
(
p_obj
);
vlc_restorecancel
(
canc
);
...
...
@@ -187,8 +183,6 @@ static void* RunPreparse ( vlc_object_t *p_this )
static
void
*
RunFetcher
(
vlc_object_t
*
p_this
)
{
playlist_fetcher_t
*
p_obj
=
(
playlist_fetcher_t
*
)
p_this
;
/* Tell above that we're ready */
vlc_thread_ready
(
p_obj
);
int
canc
=
vlc_savecancel
();
playlist_FetcherLoop
(
p_obj
);
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