Skip to content

Commit

Permalink
decoder: reset preroll on flush
Browse files Browse the repository at this point in the history
We don´t want to discard decoded data if seeking during prefoll then
the timestamps restart from lower values.
  • Loading branch information
Rémi Denis-Courmont committed Dec 10, 2015
1 parent 367536d commit 1e30d40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/input/decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -1396,6 +1396,10 @@ static void DecoderProcessFlush( decoder_t *p_dec )
vlc_object_release( p_vout );
}
}

vlc_mutex_lock( &p_owner->lock );
p_owner->i_preroll_end = INT64_MIN;
vlc_mutex_unlock( &p_owner->lock );
}

/**
Expand Down

0 comments on commit 1e30d40

Please sign in to comment.