diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-11-15 09:19:24 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2016-11-15 09:36:52 +1000 |
commit | d10913e2de736b8b34d5efe12548c50296add378 (patch) | |
tree | e86863449f026576b5c498b00d2aa1cc91311b8c | |
parent | ea1231fb952353d3a81ea00f1aefec6881fc7da8 (diff) |
Fix intermittent hang when stopping PortaudioBackend
This issue is not always reproducible but when it does occur it happens
somewhat consistently on both 32bit and 64bit builds(Tested on Windows 7).
The midiOutReset call does not return (or it takes so long that it might as
well be indefinite) and as it is not strictly necessary just remove it.
Resolves: http://tracker.ardour.org/view.php?id=7095
-rw-r--r-- | libs/backends/portaudio/winmmemidi_output_device.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libs/backends/portaudio/winmmemidi_output_device.cc b/libs/backends/portaudio/winmmemidi_output_device.cc index 89011d34d3..5730e4b1be 100644 --- a/libs/backends/portaudio/winmmemidi_output_device.cc +++ b/libs/backends/portaudio/winmmemidi_output_device.cc @@ -118,13 +118,7 @@ WinMMEMidiOutputDevice::close (std::string& error_msg) { // return error message for first error encountered? bool success = true; - MMRESULT result = midiOutReset (m_handle); - if (result != MMSYSERR_NOERROR) { - error_msg = get_error_string (result); - DEBUG_MIDI (error_msg); - success = false; - } - result = midiOutClose (m_handle); + MMRESULT result = midiOutClose (m_handle); if (result != MMSYSERR_NOERROR) { error_msg = get_error_string (result); DEBUG_MIDI (error_msg); |