SIGN IN SIGN UP

player: clamp display time to known time range on seeking

During seeking, and there is momemtarily no new data available yet, the
player will display the seek target as current time. Clamp this time to
the known time range as implied by the start time and the duration of
the file.

This improves behavior especially when seeking in audio files, for which
this for some reason triggers rather often. There were some users
complaining about this.

This makes behavior worse for files with timestamp resets, or
incorrectly reported duration. (The latter is relatively common,
e.g. libavformat shortcomings, or incomplete files.)
W
wm4 committed
0ff93a83571ede54af87ebd1aed5736f428c48d4
Parent: c4aa136