Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
91994ef8
Commit
91994ef8
authored
Oct 01, 2007
by
Laurent Aimar
Browse files
Clean up.
parent
662d8a57
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/input/clock.c
View file @
91994ef8
...
...
@@ -203,6 +203,15 @@ void input_ClockSetPCR( input_thread_t *p_input,
}
}
/*****************************************************************************
* input_ClockResetPCR:
*****************************************************************************/
void
input_ClockResetPCR
(
input_thread_t
*
p_input
,
input_clock_t
*
cl
)
{
cl
->
i_synchro_state
=
SYNCHRO_REINIT
;
cl
->
last_pts
=
0
;
}
/*****************************************************************************
* input_ClockGetTS: manages a PTS or DTS
*****************************************************************************/
...
...
src/input/es_out.c
View file @
91994ef8
...
...
@@ -1598,10 +1598,7 @@ static int EsOutControl( es_out_t *out, int i_query, va_list args )
case
ES_OUT_RESET_PCR
:
for
(
i
=
0
;
i
<
p_sys
->
i_pgrm
;
i
++
)
{
p_sys
->
pgrm
[
i
]
->
clock
.
i_synchro_state
=
SYNCHRO_REINIT
;
p_sys
->
pgrm
[
i
]
->
clock
.
last_pts
=
0
;
}
input_ClockResetPCR
(
p_sys
->
p_input
,
&
p_sys
->
pgrm
[
i
]
->
clock
);
return
VLC_SUCCESS
;
case
ES_OUT_GET_TS
:
...
...
src/input/input_internal.h
View file @
91994ef8
...
...
@@ -301,6 +301,7 @@ typedef struct
void
input_ClockInit
(
input_thread_t
*
,
input_clock_t
*
,
vlc_bool_t
b_master
,
int
i_cr_average
);
void
input_ClockSetPCR
(
input_thread_t
*
,
input_clock_t
*
,
mtime_t
);
void
input_ClockResetPCR
(
input_thread_t
*
,
input_clock_t
*
);
mtime_t
input_ClockGetTS
(
input_thread_t
*
,
input_clock_t
*
,
mtime_t
);
void
input_ClockSetRate
(
input_thread_t
*
,
input_clock_t
*
cl
);
...
...
Write
Preview
Supports
Markdown
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