mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
fix handling of flags in the OSC input handler
Some builds of glib on macOS end up delivering IO_PRI when IO_IN is also set. This differs from our own build stack version, but it isn't really an error, so we should handle it.
This commit is contained in:
parent
dba7421153
commit
baf0cdcbef
1 changed files with 4 additions and 4 deletions
|
|
@ -684,14 +684,14 @@ OSC::register_callbacks()
|
|||
bool
|
||||
OSC::osc_input_handler (IOCondition ioc, lo_server srv)
|
||||
{
|
||||
if (ioc & ~IO_IN) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (ioc & IO_IN) {
|
||||
lo_server_recv (srv);
|
||||
}
|
||||
|
||||
if (ioc & ~(IO_IN|IO_PRI)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue