mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
Work around ffado port-name idiosyncrasies
This commit is contained in:
parent
e6496ab032
commit
60ff3ef764
1 changed files with 9 additions and 0 deletions
|
|
@ -136,6 +136,15 @@ naturally_less (const char* a, const char* b)
|
||||||
if (*a == *b) {
|
if (*a == *b) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#if 1
|
||||||
|
/* treat underscore as space, this works around idiosyncratic
|
||||||
|
* ffado port-names: "foo_in", "foo0_in", "foo2_in", etc */
|
||||||
|
if (*a == '_') {
|
||||||
|
return ' ' < *b;
|
||||||
|
} else if (*b == '_') {
|
||||||
|
return *a < ' ';
|
||||||
|
} else
|
||||||
|
#endif
|
||||||
return *a < *b;
|
return *a < *b;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue