Fix incorrect cast between pointers.
I've been getting a segfault when running the examples in main
since 5bbdfe5b.
From the debugging, this is because the cast between pw_main_loop
and LoopRef
and hence implicit cast between pw_main_loop
and pw_loop
is unsound.
I'm unsure of the rest of the implications of this change, since I have not checked the other parts of the commit in-depth.
I'm running against pipewire version 0.3.58
.
Edited by Yilin Wei