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
a6778552
Commit
a6778552
authored
Sep 18, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed subtitle flush to not flush on pause.
parent
aad0acf8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
src/input/decoder.c
src/input/decoder.c
+8
-2
src/input/input_internal.h
src/input/input_internal.h
+1
-0
No files found.
src/input/decoder.c
View file @
a6778552
...
...
@@ -326,6 +326,8 @@ void input_DecoderDiscontinuity( decoder_t * p_dec, bool b_flush )
/* Send a special block */
p_null
=
block_New
(
p_dec
,
128
);
p_null
->
i_flags
|=
BLOCK_FLAG_DISCONTINUITY
;
if
(
b_flush
&&
p_dec
->
fmt_in
.
i_cat
==
SPU_ES
)
p_null
->
i_flags
|=
BLOCK_FLAG_CORE_FLUSH
;
/* FIXME check for p_packetizer or b_packitized from es_format_t of input ? */
if
(
p_dec
->
p_owner
->
p_packetizer
&&
b_flush
)
p_null
->
i_flags
|=
BLOCK_FLAG_CORRUPTED
;
...
...
@@ -1047,12 +1049,16 @@ 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
;
bool
b_flushing
=
p_dec
->
p_owner
->
i_preroll_end
==
INT64_MAX
;
bool
b_flush
=
false
;
if
(
p_block
)
{
DecoderUpdatePreroll
(
&
p_dec
->
p_owner
->
i_preroll_end
,
p_block
);
b_flush
=
(
p_block
->
i_flags
&
BLOCK_FLAG_CORE_FLUSH
)
!=
0
;
}
if
(
!
b_flush
&&
p_dec
->
p_owner
->
i_preroll_end
==
INT64_MAX
&&
p_sys
->
p_spu_vout
)
if
(
!
b_flush
ing
&&
b_flush
&&
p_sys
->
p_spu_vout
)
{
p_vout
=
vlc_object_find
(
p_dec
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
...
...
src/input/input_internal.h
View file @
a6778552
...
...
@@ -336,6 +336,7 @@ void stream_AccessReset( stream_t *s );
void
stream_AccessUpdate
(
stream_t
*
s
);
/* decoder.c */
#define BLOCK_FLAG_CORE_FLUSH (1 <<BLOCK_FLAG_CORE_PRIVATE_SHIFT)
void
input_DecoderDiscontinuity
(
decoder_t
*
p_dec
,
bool
b_flush
);
bool
input_DecoderEmpty
(
decoder_t
*
p_dec
);
int
input_DecoderSetCcState
(
decoder_t
*
,
bool
b_decode
,
int
i_channel
);
...
...
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