mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
aplaymidi: Allow to pass 0 to -u option, too
Specifying -u 0 shouldn't be treated as an error but it should mean the legacy MIDI 1.0 handling. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
cac4935ba2
commit
d26b66f881
1 changed files with 3 additions and 5 deletions
|
@ -996,11 +996,9 @@ int main(int argc, char *argv[])
|
||||||
end_delay = atoi(optarg);
|
end_delay = atoi(optarg);
|
||||||
break;
|
break;
|
||||||
case 'u':
|
case 'u':
|
||||||
if (strcmp(optarg, "1")) {
|
ump_mode = atoi(optarg);
|
||||||
errormsg("Only MIDI 1.0 is supported");
|
if (ump_mode < 0 || ump_mode > 1)
|
||||||
return 1;
|
fatal("Only MIDI 1.0 is supported");
|
||||||
}
|
|
||||||
ump_mode = 1;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
usage(argv[0]);
|
usage(argv[0]);
|
||||||
|
|
Loading…
Reference in a new issue