13
0

fix some false-positive compiler warnings

This commit is contained in:
Robin Gareus 2016-05-27 17:55:26 +02:00
parent 46709de8ab
commit 4aea1285c9
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;