fix possible endless loop in silence detection
authorRobin Gareus <robin@gareus.org>
Sat, 19 Sep 2015 16:31:41 +0000 (18:31 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 19 Sep 2015 17:00:43 +0000 (19:00 +0200)
gtk2_ardour/editor_ops.cc

index d536bf94d5540d4c42c4ae7bce72a96dde72808e..572cbe3981539ca1066ec85ef8c5165352fe8e78 100644 (file)
@@ -5177,6 +5177,8 @@ Editor::strip_region_silence ()
                }
        }
 
+       assert (!audio_only.empty());
+
        StripSilenceDialog d (_session, audio_only);
        int const r = d.run ();
 
@@ -5469,9 +5471,6 @@ Editor::apply_filter (Filter& filter, string command, ProgressReporter* progress
                                _session->add_commands (cmds);
                                
                                _session->add_command(new StatefulDiffCommand (playlist));
-
-                       } else {
-                               continue;
                        }
 
                        if (progress) {