dont clear_output for single step for shuttle, shuttle fix for HI_JOG event
authorGood Guy <good1.2guy@gmail.com>
Thu, 11 Apr 2019 01:22:33 +0000 (19:22 -0600)
committerGood Guy <good1.2guy@gmail.com>
Thu, 11 Apr 2019 01:22:33 +0000 (19:22 -0600)
cinelerra-5.1/cinelerra/playbackengine.C
cinelerra-5.1/cinelerra/shuttle.C
cinelerra-5.1/cinelerra/shuttle.h

index 71126cf..b9845f3 100644 (file)
@@ -407,7 +407,8 @@ void PlaybackEngine::run()
 // Start tracking after arming so the tracking position doesn't change.
 // The tracking for a single frame command occurs during PAUSE
                        init_tracking();
-                       clear_output();
+                       if( !command->single_frame() )
+                               clear_output();
 // Dispatch the command
                        start_render_engine();
                        break;
index 4c780f1..e8d5572 100644 (file)
@@ -603,6 +603,8 @@ void Shuttle::jogshuttle(unsigned short code, unsigned int value)
        case EVENT_CODE_SHUTTLE:
                shuttle(value);
                break;
+       case EVENT_CODE_HI_JOG:  // redundant report of JOG value*120
+               break;
        default:
                fprintf(stderr, "jogshuttle(%d, %d) invalid code\n", code, value);
                break;
index 46283df..6793a03 100644 (file)
@@ -46,6 +46,7 @@ enum { JL=0,JR };
 // ev.code when ev.type == JOGSHUTTLE
 #define EVENT_CODE_JOG 7
 #define EVENT_CODE_SHUTTLE 8
+#define EVENT_CODE_HI_JOG 11
 
 // ev.value when ev.code == JOG
 // 8 bit value changing by one for each jog step