Commit 5491c687 authored by Laurent Aimar's avatar Laurent Aimar

Assert against broken values in input_clock_Update.

parent fe54ba9c
......@@ -203,10 +203,11 @@ void input_clock_Update( input_clock_t *cl,
{
bool b_reset_reference = false;
assert( i_ck_stream > VLC_TS_INVALID && i_ck_system > VLC_TS_INVALID );
vlc_mutex_lock( &cl->lock );
if( ( !cl->b_has_reference ) ||
( i_ck_stream <= VLC_TS_INVALID && cl->last.i_stream > VLC_TS_INVALID ) )
if( !cl->b_has_reference )
{
/* */
b_reset_reference= true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment