mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-22 00:38:09 +02:00
The info structure needs to be cached because there is no way to request it from the implementation, unless we hack the add_listener API to be used for making info requests or add a new method that will be used just in the implementation (both are bad ideas). The params are cached because 1) a client doing enum_params + sync will not work correctly, since the sync call syncs with the server and not the implementation... we could block the client to solve that, but then there is also #2 2) the implementation is not aware of the clients and therefore it cannot keep track of who is subscribed and who is not, this needs to happen in the server. Then if we only keep track of the subscriptions in the server and keep requesting params from the impl, there is no way to know if a param event coming from the impl matches a call to enum_params or to subscribe or if it's just an update that needs to be forwarded to subscribers. |
||
|---|---|---|
| .. | ||
| daemon | ||
| examples | ||
| extensions | ||
| gst | ||
| modules | ||
| pipewire | ||
| tests | ||
| tools | ||
| .gitignore | ||
| meson.build | ||