Superficial code cleanup.
[ardour.git] / gtk2_ardour / export_range_markers_dialog.cc
index 1184294a6712e6f5fd6314f80ade182486650ba9..bf2f0e3989aba2f44ca00dfbb45895a1badfcc67 100644 (file)
@@ -54,7 +54,7 @@ ExportRangeMarkersDialog::browse_action () const
 }
        
 void 
-ExportRangeMarkersDialog::export_audio_data ()
+ExportRangeMarkersDialog::export_data ()
 {
        getSession().locations()->apply(*this, &ExportRangeMarkersDialog::process_range_markers_export);
 }
@@ -81,9 +81,7 @@ ExportRangeMarkersDialog::process_range_markers_export(Locations::LocationList&
                        spec.start_frame = currentLocation->start();
                        spec.end_frame = currentLocation->end();
 
-                       getSession().request_locate(spec.start_frame, false);
-
-                       if (getSession().start_audio_export(spec)){
+                       if (getSession().start_export(spec)){
                                // if export fails                      
                                return;
                        }
@@ -100,6 +98,8 @@ ExportRangeMarkersDialog::process_range_markers_export(Locations::LocationList&
                        }
                        
                        current_range_marker_index++;
+                       
+                       getSession().stop_export (spec);
                }
        }