Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
4d4f76fd
Commit
4d4f76fd
authored
Oct 10, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partially fixed preroll support.
parent
0b2d112a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/input/es_out.c
src/input/es_out.c
+3
-3
No files found.
src/input/es_out.c
View file @
4d4f76fd
...
...
@@ -588,6 +588,8 @@ static void EsOutDecodersStopBuffering( es_out_t *out, bool b_forced )
{
es_out_id_t
*
p_es
=
p_sys
->
es
[
i
];
p_es
->
i_preroll_end
=
-
1
;
if
(
!
p_es
->
p_dec
)
continue
;
input_DecoderWaitBuffering
(
p_es
->
p_dec
);
...
...
@@ -601,7 +603,7 @@ static void EsOutDecodersStopBuffering( es_out_t *out, bool b_forced )
const
mtime_t
i_ts_delay
=
10
*
1000
+
/* FIXME CLEANUP thread wake up time*/
mdate
();
//msg_Dbg( p_sys->p_input, "==> %lld", i_ts_delay - p_sys->p_input->i_pts_delay );
input_clock_ChangeSystemOrigin
(
p_sys
->
p_pgrm
->
p_clock
,
i_ts_delay
-
p_sys
->
p_input
->
i_pts_delay
);
input_clock_ChangeSystemOrigin
(
p_sys
->
p_pgrm
->
p_clock
,
i_ts_delay
-
p_sys
->
p_input
->
i_pts_delay
-
i_preroll_duration
);
for
(
int
i
=
0
;
i
<
p_sys
->
i_es
;
i
++
)
{
...
...
@@ -1683,8 +1685,6 @@ static int EsOutSend( es_out_t *out, es_out_id_t *es, block_t *p_block )
if
(
i_date
<
es
->
i_preroll_end
)
p_block
->
i_flags
|=
BLOCK_FLAG_PREROLL
;
else
es
->
i_preroll_end
=
-
1
;
}
p_block
->
i_rate
=
0
;
...
...
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