#include "mwindowgui.h"
#include "patchbay.h"
#include "tracking.h"
+#include "tracks.h"
#include "playbackengine.h"
#include "playtransport.h"
#include "preferences.h"
// 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;
// Just change the EDL if the change requires it because renderengine
// structures won't point to the new EDL otherwise and because copying the
// EDL for every cursor movement is slow.
- if( change_type & CHANGE_EDL )
+ if( change_type == CHANGE_EDL || change_type == CHANGE_ALL )
next_command->get_edl()->copy_all(new_edl);
- else if( change_type & CHANGE_PARAMS )
+ else if( change_type == CHANGE_PARAMS )
next_command->get_edl()->synchronize_params(new_edl);
next_command->set_playback_range(new_edl, use_inout,
preferences->forward_render_displacement);