Commit 8d28a695 authored by Thomas Krex's avatar Thomas Krex

nach adjusting mit notify() gesetzt --> loop fährt nach setTime() fort

parent b8b5fef4
......@@ -539,7 +539,7 @@ public class Recording extends MessageProducerAdapter implements Runnable {
* @param time
*/
public void setTime(int time) {
adjusting = true;
setAdjusting(true);
time = sync(time);
......@@ -553,7 +553,7 @@ public class Recording extends MessageProducerAdapter implements Runnable {
messages.setTime_full_frame_check(time);
setAudioPlayerTime(time);
graphicsContext.refresh();
adjusting = false;
setAdjusting(false);
//
// index.setCorrespondingIndex(time);
......@@ -572,6 +572,12 @@ public class Recording extends MessageProducerAdapter implements Runnable {
notify();
}
synchronized void setAdjusting(boolean state) {
adjusting = state;
notify();
}
public void setAudioPlayerTime(int time) {
// synchronize audio/video
if (audioPlayer != null)
......
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