diff options
author | Florian Kagerer | 2010-06-29 21:56:04 +0000 |
---|---|---|
committer | Florian Kagerer | 2010-06-29 21:56:04 +0000 |
commit | 7455c3ec3954e068090004369600c03b6ede43a2 (patch) | |
tree | 5e6da56d78314b91af793bbd79b2e1d99c9eb90e /sound/mididrv.cpp | |
parent | 97186bd5b03e012776bd3894e417a25118444ca9 (diff) | |
download | scummvm-rg350-7455c3ec3954e068090004369600c03b6ede43a2.tar.gz scummvm-rg350-7455c3ec3954e068090004369600c03b6ede43a2.tar.bz2 scummvm-rg350-7455c3ec3954e068090004369600c03b6ede43a2.zip |
AUDIO: fixed bug when device was set to default and only MDT_MIDI flags were passed to detectDevice()
svn-id: r50510
Diffstat (limited to 'sound/mididrv.cpp')
-rw-r--r-- | sound/mididrv.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp index d164864fc2..aaff78bf92 100644 --- a/sound/mididrv.cpp +++ b/sound/mididrv.cpp @@ -228,6 +228,9 @@ MidiDriver::DeviceHandle MidiDriver::detectDevice(int flags) { tp = MT_ADLIB; else if (flags & MDT_PCSPK) tp = MT_PCSPK; + else if (l == 0) + // if we haven't tried to find a MIDI device yet we do this now. + continue; else tp = MT_AUTO; |