1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-03 23:34:09 +02:00

Apparently video duration minus 0.05 causes complete hangs in short videos...

This commit is contained in:
chylex 2020-03-07 01:40:07 +01:00
parent 34e049a002
commit fc89744238

View File

@ -276,7 +276,7 @@ private void timerSync_Tick(object sender, EventArgs e){
// the controls.play() call even though it runs on the UI thread
}
}
else if (controls.currentPosition > media.duration - 0.05 && !isPaused){ // reset before it reaches the end to avoid black screen
else if (controls.currentPosition > media.duration - 0.2 && media.duration > 1.0 && !isPaused){ // reset before it reaches the end to avoid black screen
controls.currentPosition = 0;
}