add configure without-thirdparty, without-libzmpeg, without-commercial
[goodguy/history.git] / cinelerra-5.1 / cinelerra / mwindowedit.C
index cf818e47a48f0c27432b7d5c2d7a59165c3eb007..eb06639824c8e0620f4307ecc9738e9cc158953a 100644 (file)
@@ -2448,6 +2448,7 @@ void MWindow::add_proxy(int use_scaler,
 
 void MWindow::cut_commercials()
 {
+#ifdef HAVE_COMMERCIAL
        undo->update_undo_before();
        commercials->scan_media();
        edl->optimize();
@@ -2459,6 +2460,7 @@ void MWindow::cut_commercials()
        gui->update(1, 2, 1, 1, 1, 1, 0);
        cwindow->update(1, 0, 0, 0, 1);
        cwindow->refresh_frame(CHANGE_EDL);
+#endif
 }
 
 int MWindow::normalize_speed(EDL *old_edl, EDL *new_edl)