fixed bug 433: Timer.setLivePlayDelayInMillis updated to now-delay in play instead of in live mode

This commit is contained in:
Axel Uhl committed 2012-07-22 12:27:24 +02:00
1 parent 008b7d89ac
commit 6aedfcd21c
1 file changed
+5 -3
@@ -258,9 +258,11 @@ public class Timer {
}
public void setLivePlayDelayInMillis(long delayInMilliseconds) {
this.livePlayDelayInMillis = delayInMilliseconds;
if (getPlayState() == PlayStates.Playing) {
setTime(new Date().getTime() - delayInMilliseconds);
if (this.livePlayDelayInMillis != delayInMilliseconds) {
this.livePlayDelayInMillis = delayInMilliseconds;
if (getPlayMode() == PlayModes.Live) {
setTime(new Date().getTime() - delayInMilliseconds);
}
}
}