Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
39322a90
Commit
39322a90
authored
Jul 12, 2004
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix refcount problem when creation fails
parent
707ee8ea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/video_output/video_output.c
src/video_output/video_output.c
+10
-1
No files found.
src/video_output/video_output.c
View file @
39322a90
...
@@ -413,6 +413,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent,
...
@@ -413,6 +413,7 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent,
if
(
p_vout
->
p_module
==
NULL
)
if
(
p_vout
->
p_module
==
NULL
)
{
{
msg_Err
(
p_vout
,
"no suitable vout module"
);
msg_Err
(
p_vout
,
"no suitable vout module"
);
vlc_object_detach
(
p_vout
);
vlc_object_destroy
(
p_vout
);
vlc_object_destroy
(
p_vout
);
return
NULL
;
return
NULL
;
}
}
...
@@ -489,6 +490,11 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent,
...
@@ -489,6 +490,11 @@ vout_thread_t * __vout_Create( vlc_object_t *p_parent,
/* Make sure the thread is destroyed */
/* Make sure the thread is destroyed */
p_vout
->
b_die
=
VLC_TRUE
;
p_vout
->
b_die
=
VLC_TRUE
;
if
(
p_vout
->
p_text_renderer_module
)
{
module_Unneed
(
p_vout
,
p_vout
->
p_text_renderer_module
);
}
vlc_thread_join
(
p_vout
);
vlc_thread_join
(
p_vout
);
vlc_object_detach
(
p_vout
);
vlc_object_detach
(
p_vout
);
...
@@ -1157,7 +1163,10 @@ static void DestroyThread( vout_thread_t *p_vout )
...
@@ -1157,7 +1163,10 @@ static void DestroyThread( vout_thread_t *p_vout )
vlc_mutex_destroy
(
&
p_vout
->
change_lock
);
vlc_mutex_destroy
(
&
p_vout
->
change_lock
);
/* Release the module */
/* Release the module */
if
(
p_vout
->
p_module
&&
p_vout
->
p_module
)
{
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
module_Unneed
(
p_vout
,
p_vout
->
p_module
);
}
}
}
/* following functions are local */
/* following functions are local */
...
...
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