Commit 57a878e6 authored by Thomas Guillem's avatar Thomas Guillem

audiotrack: negative delay can finally happen

It happens in case of underflow: if there is too much delay between two
consecutives call of Play or TimeGet.
parent 1f02594b
......@@ -690,7 +690,10 @@ TimeGet( audio_output_t *p_aout, mtime_t *restrict p_delay )
return 0;
msg_Warn( p_aout, "Negative delay, Should not happen !" );
msg_Warn( p_aout, "timing screwed, reset positions" );
AudioTrack_ResetPositions( env, p_aout );
return -1;
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