- Nov 27, 2019
-
-
Julian Bouzas authored
-
Julian Bouzas authored
-
- Nov 16, 2019
-
-
George Kiagiadakis authored
in finalize() the pw_proxy is already gone and we always print null
-
George Kiagiadakis authored
This was causing a memory corruption and crash because the simple-endpoint-link was not calling finalize of the endpoint-link and the GWeakRefs pointing to the endpoints were not uninitialized, causing g_object_unref later to try to write to them (on free'ed memory)
-
- Nov 13, 2019
-
-
George Kiagiadakis authored
-
George Kiagiadakis authored
* rework how global objects are stored in the core * rework how users get notified about global objects and proxies of remote global objects The purpose of this change is to have a class that can manage objects that are registered in the core or signalled through the registry. This object can declare interest on certain types of global objects and only keep & signal those objects that it is interested in. Additionally, it can prepare proxy features and asynchronously deliver an 'objects-changed' signal, which is basically telling us that the list of objects has changed. This is useful to simplify port proxies management in WpAudioStream. Now the stream object can declare that it is interested in ports that have "node.id" == X and the object manager will only maintain a list of those. Additionally, it will emit the 'objects-changed' signal when the list of ports is complete, so there is no reason to do complex operations and core syncs in the WpAudioStream class in order to figure out when the list of ports is ready. As a side effect, this also reduces resource management. Now we don't construct a WpProxy for every global that pipewire reports; we only construct proxies when there is interest in them! Another interesting side effect is that we can now register an object manager at any point in time and get immediately notified about remote globals that already exist. i.e. when you register an object manager that is interested in nodes, it will be immediately notified about all the existing nodes in the graph. This is useful to avoid race conditions between connecting the signal and objects beting created in pipewire
-
- Nov 11, 2019
-
-
George Kiagiadakis authored
-
George Kiagiadakis authored
This lifts the limitation of having a single entity externally that augments the proxy and allows us to implement better management of the proxies with the upcoming WpObjectManager
-
- Nov 07, 2019
-
-
George Kiagiadakis authored
-
- Nov 06, 2019
-
-
Bastien Nocera authored
PipeWire headers were recently cleaned up to reduce the number of included headers. This leads to a number of functions and types not being included when needed in wireplumber.
-
Julian Bouzas authored
-
- Oct 07, 2019
-
-
George Kiagiadakis authored
In current pw master the behavior has been changed to not activate the "On" profile on alsa devices by default, because of the DeviceReserve D-Bus API implementation in media-session. This is a hack here to get the previous behavior. In the future we should have a way to configure profiles, as well as to pick a sensible default by autodetection.
-
George Kiagiadakis authored
-
- Oct 02, 2019
-
-
George Kiagiadakis authored
-
- Sep 22, 2019
-
-
George Kiagiadakis authored
-
- Sep 17, 2019
-
-
George Kiagiadakis authored
Because the proxy_event_destroy() handler now takes a ref to the WpProxy, which is an error to do in finalize()
-
George Kiagiadakis authored
This class wraps a SPA monitor and creates all the devices and nodes as they are being discovered
-
George Kiagiadakis authored
-
George Kiagiadakis authored
A method to copy specific keys from one properties set to another
-
George Kiagiadakis authored
This is very easy to reproduce when the pipewire-alsa integration is installed and you do 'arecord -l'; the alsa plugin connects and disconnects again before the proxy is ready. In this case we have to skip remote-global-added and we also have to be careful with the references: the global-removed callback is called earlier, so the core's reference to the proxy is gone and the GTask is the only thing holding a reference to the proxy. When we unref the GTask, the proxy is also unrefed, so we have to keep an additional reference in order to avoid crashing when accessing the hash table below.
-
- Sep 07, 2019
-
-
George Kiagiadakis authored
-
George Kiagiadakis authored
In practice we always create a remote and connect to pipewire. Any other scenario is invalid, therefore, it is not justified to be confused with so many classes for such small functionality. This simplifies a lot the modules code. Also, this commit exposes the pw_core and pw_remote objects out of WpCore. This is in practice useful when dealing with low-level pw and spa factories, which are used in the monitors. Let's not add API wrappers for everything... Bindings will never use this functionality anyway, since it depends on low level pipewire C API.
-
- Aug 29, 2019
-
-
George Kiagiadakis authored
In case the proxy was created with wp_proxy_new_wrap(), the event listener was not attached on the pw_proxy
-
George Kiagiadakis authored
-
George Kiagiadakis authored
-
- Aug 27, 2019
-
-
George Kiagiadakis authored
-
George Kiagiadakis authored
* add proxy sync method * add wrapers for enum/set/subscribe_params * move the info structure handling to the subclasses * expose info->props as WpProperties
-
Julian Bouzas authored
-
- Aug 26, 2019
-
-
Julian Bouzas authored
-
- Aug 25, 2019
-
-
George Kiagiadakis authored
-
- Aug 24, 2019
-
-
George Kiagiadakis authored
-
- Aug 19, 2019
-
-
Julian Bouzas authored
-
George Kiagiadakis authored
-
- Aug 13, 2019
-
-
Julian Bouzas authored
-
Julian Bouzas authored
-
- Jul 25, 2019
-
-
George Kiagiadakis authored
-
Julian Bouzas authored
-
- Jul 12, 2019
-
-
George Kiagiadakis authored
* Every client has a priority based on its role * For playback, we allow only a single client to play at a time * For capture, we allow all clients to capture simultaneously * Every time the "selected" device changes (either because devices are discovered/removed or because the user changed the selection), the clients are re-linked to the new "selected" device. * When a playback client quits and there are others waiting unlinked, the highest priority one is linked automatically. * This also properly fixes re-linking the correct client(s) to the correct device(s) when wireplumber exits and restarts.
-
Julian Bouzas authored
-
- Jul 10, 2019
-
-
Julian Bouzas authored
-