Create the session range location as and when the session first gets some content...
[ardour.git] / libs / ardour / session_transport.cc
index 6d7d3b4521c9abdea1c1d1018e8d685081b53685..7a378e1a01be6b64a5586ded867510fb8e03f740 100644 (file)
@@ -408,36 +408,6 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
 
        if (did_record) {
                begin_reversible_command ("capture");
-
-               Location* loc = _locations.session_range_location();
-               bool change_end = false;
-
-               if (_transport_frame < loc->end()) {
-
-                       /* stopped recording before current end */
-
-                       if (config.get_end_marker_is_free()) {
-
-                               /* first capture for this session, move end back to where we are */
-
-                               change_end = true;
-                       }
-
-               } else if (_transport_frame > loc->end()) {
-
-                       /* stopped recording after the current end, extend it */
-
-                       change_end = true;
-               }
-
-               if (change_end) {
-                        XMLNode &before = loc->get_state();
-                        loc->set_end(_transport_frame);
-                        XMLNode &after = loc->get_state();
-                        add_command (new MementoCommand<Location>(*loc, &before, &after));
-               }
-
-               config.set_end_marker_is_free (false);
                _have_captured = true;
        }
 
@@ -587,10 +557,6 @@ Session::non_realtime_stop (bool abort, int on_entry, bool& finished)
                save_state (_current_snapshot_name);
        }
 
-       if (ptw & PostTransportDuration) {
-               DurationChanged (); /* EMIT SIGNAL */
-       }
-
        if (ptw & PostTransportStop) {
                _play_range = false;
                play_loop = false;