span keyframes toggle, rect_audio tweaks, fix playbackengine clear output for audio...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / playbackengine.C
index 228f3890b2def426bf3d37f808c81fbeeaabb6ad..fcbeeb1d083bc79df2b01ccf077eef8a3fc04ed3 100644 (file)
@@ -33,6 +33,7 @@
 #include "mwindowgui.h"
 #include "patchbay.h"
 #include "tracking.h"
 #include "mwindowgui.h"
 #include "patchbay.h"
 #include "tracking.h"
+#include "tracks.h"
 #include "playbackengine.h"
 #include "playtransport.h"
 #include "preferences.h"
 #include "playbackengine.h"
 #include "playtransport.h"
 #include "preferences.h"
@@ -411,8 +412,11 @@ 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();
 // Start tracking after arming so the tracking position doesn't change.
 // The tracking for a single frame command occurs during PAUSE
                        init_tracking();
-                       if( !command->single_frame() )
-                               clear_output();
+                       if( !command->single_frame() ) {
+                               EDL *edl = command->get_edl();
+                               if( edl && edl->tracks->playable_video_tracks() )
+                                       clear_output();
+                       }
 // Dispatch the command
                        start_render_engine();
                        break;
 // Dispatch the command
                        start_render_engine();
                        break;