alsa: handle error from _set_client_midi_version()

See #4507
This commit is contained in:
Wim Taymans 2025-01-19 15:52:48 +01:00
parent eb91f097d9
commit e4fc8d43bb

View file

@ -34,10 +34,12 @@ static int seq_open(struct seq_state *state, struct seq_conn *conn, bool with_qu
if ((res = snd_seq_open(&conn->hndl,
props->device,
SND_SEQ_OPEN_DUPLEX,
0)) < 0) {
0)) < 0)
return res;
}
snd_seq_set_client_midi_version(conn->hndl, SND_SEQ_CLIENT_UMP_MIDI_2_0);
if ((res = snd_seq_set_client_midi_version(conn->hndl, SND_SEQ_CLIENT_UMP_MIDI_2_0)) < 0)
return res;
return 0;
}