Wim Taymans
3255bc8eae
context: use clock time as rttime when using our loop
2020-10-23 20:37:04 +02:00
Wim Taymans
aba02806cf
mainloop: do better wallclock to rttime conversion
...
The mainloop time_new is supposed to be called with wallclock time
but some apps use rttime instead. Handle the case better so that we
never end up disabling the timer.
2020-10-23 16:33:05 +02:00
Wim Taymans
ec40702427
pulse: handle NULL timespec
2020-10-23 09:52:30 +02:00
Wim Taymans
413c233b9a
mainloop: convert from wallclock to rtclock
...
This is needed for the mainloop timeouts
2020-10-22 16:46:29 +02:00
Wim Taymans
55b4042512
context: support foreign mainloop_api
...
Detect if the mainloop_api is one of ours and use the loop directly in
that case. Otherwise, make a new loop and add the fd to the foreign
mainloop_api. Make sure we clean up as well.
Fixes #345
2020-10-22 12:26:27 +02:00
Wim Taymans
f541bf9037
pulse: implement custom mainloop poll function
...
Implement setting a custom poll function. When there is a custom
function, just poll the epoll fd in it.
Fixes #276
2020-09-07 15:50:58 +02:00
Wim Taymans
4370675d2b
pulse: fix crash when cleaning up signals
...
Also make sure the main pulseaudio binary can't be started.
2020-08-21 15:36:03 +02:00
Wim Taymans
d9a18742f4
pulse: guard against invalid fds
...
Some fds can't be added to epoll (stdin/stdout) and will cause an
error. Make sure we don't try to free the NULL event.
Add some more debug
2020-04-14 15:40:21 +02:00
Jan Koester
dfdd664160
mainloop: add SPA_EXPORT to pa_mainloop_api_once
...
Fixes #200
2020-01-08 15:29:37 +01:00
Arun Raghavan
37a72b2531
Merge pipewire-pulseaudio subtree
2019-11-03 15:20:57 +01:00