Update dependencies

This updates all crates to their newest release.

For pipewire-rs, this includes bumping the version to 0.3, which means this comment has to fix a few breaking changes, but nothing big.
0.3 also lets us create and delete remote objects, which will be needed for link creation and deletion.
This commit is contained in:
Tom A. Wagner
2021-03-27 19:57:44 +01:00
parent aab1f1bde3
commit d75dee5ea8
4 changed files with 227 additions and 71 deletions

View File

@@ -33,7 +33,9 @@ impl PipewireConnection {
.connect(None)
.map_err(|_| "Failed to connect to pipewire core")?,
);
let registry = core.get_registry();
let registry = core
.get_registry()
.map_err(|_| "Failed to get pipewire registry")?;
let state = Rc::new(RefCell::new(state));
@@ -61,7 +63,10 @@ impl PipewireConnection {
/// Receive all events from the pipewire server, sending them to the `pipewire_state` struct for processing.
pub fn roundtrip(&self) {
let done = Rc::new(Cell::new(false));
let pending = self.core.sync(0);
let pending = self
.core
.sync(0)
.expect("Failed to trigger core sync event");
let done_clone = done.clone();
let loop_clone = self.mainloop.clone();