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
93ed4c42
Commit
93ed4c42
authored
Mar 29, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input: DestroyThread()'s content should happen in the input destructor.
parent
f735a193
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
28 deletions
+11
-28
src/video_output/video_output.c
src/video_output/video_output.c
+11
-28
No files found.
src/video_output/video_output.c
View file @
93ed4c42
...
...
@@ -66,7 +66,6 @@ static int InitThread ( vout_thread_t * );
static
void
RunThread
(
vout_thread_t
*
);
static
void
ErrorThread
(
vout_thread_t
*
);
static
void
EndThread
(
vout_thread_t
*
);
static
void
DestroyThread
(
vout_thread_t
*
);
static
void
AspectRatio
(
int
,
int
*
,
int
*
);
static
int
BinaryLog
(
uint32_t
);
...
...
@@ -492,6 +491,17 @@ static void vout_Destructor( vlc_object_t * p_this )
{
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
/* Destroy the locks */
vlc_mutex_destroy
(
&
p_vout
->
picture_lock
);
vlc_mutex_destroy
(
&
p_vout
->
change_lock
);
vlc_mutex_destroy
(
&
p_vout
->
vfilter_lock
);
/* Release the module */
if
(
p_vout
->
p_module
)
{
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
}
free
(
p_vout
->
psz_filter_chain
);
config_ChainDestroy
(
p_vout
->
p_cfg
);
...
...
@@ -752,11 +762,7 @@ static void RunThread( vout_thread_t *p_vout)
vlc_thread_ready
(
p_vout
);
if
(
p_vout
->
b_error
)
{
/* Destroy thread structures allocated by Create and InitThread */
DestroyThread
(
p_vout
);
return
;
}
if
(
p_vout
->
b_title_show
)
DisplayTitleOnOSD
(
p_vout
);
...
...
@@ -1213,9 +1219,6 @@ static void RunThread( vout_thread_t *p_vout)
/* End of thread */
EndThread
(
p_vout
);
/* Destroy thread structures allocated by CreateThread */
DestroyThread
(
p_vout
);
}
/*****************************************************************************
...
...
@@ -1283,26 +1286,6 @@ static void EndThread( vout_thread_t *p_vout )
vlc_mutex_unlock
(
&
p_vout
->
change_lock
);
}
/*****************************************************************************
* DestroyThread: thread destruction
*****************************************************************************
* This function is called when the thread ends. It frees all ressources
* allocated by CreateThread. Status is available at this stage.
*****************************************************************************/
static
void
DestroyThread
(
vout_thread_t
*
p_vout
)
{
/* Destroy the locks */
vlc_mutex_destroy
(
&
p_vout
->
picture_lock
);
vlc_mutex_destroy
(
&
p_vout
->
change_lock
);
vlc_mutex_destroy
(
&
p_vout
->
vfilter_lock
);
/* Release the module */
if
(
p_vout
&&
p_vout
->
p_module
)
{
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
}
}
/* following functions are local */
static
int
ReduceHeight
(
int
i_ratio
)
...
...
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