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
7047c2a0
Commit
7047c2a0
authored
Apr 19, 2005
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decoder: fix a crash with delete spu.
parent
20bb281b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
src/input/decoder.c
src/input/decoder.c
+16
-1
No files found.
src/input/decoder.c
View file @
7047c2a0
...
...
@@ -1037,5 +1037,20 @@ static subpicture_t *spu_new_buffer( decoder_t *p_dec )
static
void
spu_del_buffer
(
decoder_t
*
p_dec
,
subpicture_t
*
p_subpic
)
{
spu_DestroySubpicture
(
p_dec
->
p_owner
->
p_vout
->
p_spu
,
p_subpic
);
decoder_owner_sys_t
*
p_sys
=
(
decoder_owner_sys_t
*
)
p_dec
->
p_owner
;
vout_thread_t
*
p_vout
=
NULL
;
p_vout
=
vlc_object_find
(
p_dec
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
!
p_vout
||
p_sys
->
p_spu_vout
!=
p_vout
)
{
if
(
p_vout
)
vlc_object_release
(
p_vout
);
msg_Warn
(
p_dec
,
"no vout found, leaking subpicture"
);
return
;
}
spu_DestroySubpicture
(
p_vout
->
p_spu
,
p_subpic
);
vlc_object_release
(
p_vout
);
}
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