Skip to content

Commit

Permalink
Fix LMMS#5504: invalid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thmueller64 authored and JohannesLorenz committed May 23, 2020
1 parent 6cb1406 commit 20ccf95
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/core/Mixer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1203,8 +1203,18 @@ MidiClient * Mixer::tryMidiClients()
printf( "midi apple didn't work: client_name=%s\n", client_name.toUtf8().constData());
#endif

printf( "Couldn't create MIDI-client, neither with ALSA nor with "
"OSS. Will use dummy-MIDI-client.\n" );
if(client_name != MidiDummy::name())
{
if (client_name.isEmpty())
{
printf("Unknown MIDI-client. ");
}
else
{
printf("Couldn't create %s MIDI-client. ", client_name.toUtf8().constData());
}
printf("Will use dummy-MIDI-client.\n");
}

m_midiClientName = MidiDummy::name();

Expand Down

0 comments on commit 20ccf95

Please sign in to comment.