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
3eaf6216
Commit
3eaf6216
authored
Sep 18, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flush subtitle on seek.
parent
253e921f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
src/input/decoder.c
src/input/decoder.c
+15
-0
No files found.
src/input/decoder.c
View file @
3eaf6216
...
...
@@ -1047,10 +1047,23 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
input_thread_t
*
p_input
=
p_dec
->
p_owner
->
p_input
;
vout_thread_t
*
p_vout
;
subpicture_t
*
p_spu
;
bool
b_flush
=
p_dec
->
p_owner
->
i_preroll_end
==
INT64_MAX
;
if
(
p_block
)
DecoderUpdatePreroll
(
&
p_dec
->
p_owner
->
i_preroll_end
,
p_block
);
if
(
!
b_flush
&&
p_dec
->
p_owner
->
i_preroll_end
==
INT64_MAX
&&
p_sys
->
p_spu_vout
)
{
p_vout
=
vlc_object_find
(
p_dec
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
&&
p_sys
->
p_spu_vout
==
p_vout
)
spu_Control
(
p_vout
->
p_spu
,
SPU_CHANNEL_CLEAR
,
p_dec
->
p_owner
->
i_spu_channel
);
if
(
p_vout
)
vlc_object_release
(
p_vout
);
}
while
(
(
p_spu
=
p_dec
->
pf_decode_sub
(
p_dec
,
p_block
?
&
p_block
:
NULL
)
)
)
{
vlc_mutex_lock
(
&
p_input
->
p
->
counters
.
counters_lock
);
...
...
@@ -1063,7 +1076,9 @@ static int DecoderDecode( decoder_t *p_dec, block_t *p_block )
/* Prerool does not work very well with subtitle */
if
(
p_spu
->
i_start
<
p_dec
->
p_owner
->
i_preroll_end
&&
(
p_spu
->
i_stop
<=
0
||
p_spu
->
i_stop
<
p_dec
->
p_owner
->
i_preroll_end
)
)
{
spu_DestroySubpicture
(
p_vout
->
p_spu
,
p_spu
);
}
else
spu_DisplaySubpicture
(
p_vout
->
p_spu
,
p_spu
);
}
...
...
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