Commit graph

1 commit

Author SHA1 Message Date
Alexey Min
e9e60806cb
hybris/pulseaudio-modules-droid: fix compatibility with pulseaudio>=13.0 (!667)
There were some API changes:
 - 878ef44079
 - 6665b466d2

Leading to error at run time:
 Error relocating /usr/lib/pulse-13.0/modules/libdroid-sink.so: pa_make_realtime: symbol not found
 Error relocating /usr/lib/pulse-13.0/modules/libdroid-source.so: pa_make_realtime: symbol not found
 Error relocating /usr/lib/pulse-13.0/modules/libdroid-source.so: pa_source_get_state: symbol not found

Fixes are:
 - include <pulse/util.h>, replace pa_make_realtime -> pa_thread_make_realtime
 - replace pa_source_get_state(X) -> X->state
 - replace pa_sink_get_state(X) -> X->state

[ci:skip-build]: already built successfully in CI
2019-10-08 00:56:28 +02:00