Implement pa_mainloop_api around pa_rtpoll
@tanuk
Submitted by Tanu Kaskinen Assigned to pul..@..op.org
Description
Most modules implement the IO thread event loop with pa_rtpoll, but module-tunnel-sink/source-new implement the event loop with pa_mainloop. module-rtp-recv assumes that the IO thread event loop is implemented with pa_rtpoll, so using module-rtp-recv with module-tunnel-sink-new results in a crash.
I think the interaction with the event loop in module-rtp-recv and elsewhere should be done through pa_mainloop_api instead of accessing the underlying implementation directly. This requires a pa_mainloop_api implementation based on pa_rtpoll.