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

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

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