13
0

Proper solution to replace 9cabc1b hack.

Initialize uninitialized variable (m_started), remove cruft.
This commit is contained in:
Robin Gareus 2015-08-04 01:03:57 +02:00
parent e057b873b5
commit c8b207d911
3 changed files with 1 additions and 4 deletions

View File

@ -37,6 +37,7 @@ namespace ARDOUR {
WinMMEMidiInputDevice::WinMMEMidiInputDevice (int index)
: m_handle(0)
, m_started(false)
, m_midi_buffer(new RingBuffer<uint8_t>(MIDI_BUFFER_SIZE))
, m_sysex_buffer(new uint8_t[SYSEX_BUFFER_SIZE])
{

View File

@ -91,7 +91,6 @@ private: // data
MIDIHDR m_sysex_header;
bool m_started;
bool m_enabled;
std::string m_name;

View File

@ -40,6 +40,3 @@ def build(bld):
'ARDOURBACKEND_DLL_EXPORTS',
'USE_MMCSS_THREAD_PRIORITIES'
]
if bld.env['build_target'] == 'mingw':
# MIDI input doesn't work with -O3 or -O2 so override
obj.cxxflags = [ '-O0' ]