diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 305cfe52f0..e751cfbe38 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -3210,6 +3210,7 @@ Session::new_route_from_template (uint32_t how_many, XMLNode& node, const std::s case NewPlaylist: rename_playlist = true; break; + default: case CopyPlaylist: case SharePlaylist: rename_playlist = false; diff --git a/libs/ardour/session_midi.cc b/libs/ardour/session_midi.cc index 8c1c8b15ff..c2010fd592 100644 --- a/libs/ardour/session_midi.cc +++ b/libs/ardour/session_midi.cc @@ -389,7 +389,7 @@ Session::send_full_time_code (framepos_t const t, MIDI::pframes_t nframes) outbound_mtc_timecode_frame = mtc_tc; transmitting_timecode_time = timecode; - LatencyRange mtc_out_latency; // TODO cache this, update on engine().GraphReordered() + LatencyRange mtc_out_latency = {0, 0}; // TODO cache this, update on engine().GraphReordered() _midi_ports->mtc_output_port ()->get_connected_latency_range (ltc_out_latency, true); frameoffset_t mtc_offset = worst_playback_latency() - mtc_out_latency.max;