Upgrade pipewire to 0.10.0
Browse files at this commitef5b7379dc444d33b01a7faec2bd6592d3188357Parent: a30ca793 changed files +14 -38
- Cargo.lock +11 -36
- Cargo.toml +1 -1
- src/screencasting/pw_utils.rs +2 -1
Cargo.lockmodified+11 -36
| @@ -576,7 +576,7 @@ dependencies = [ | |||
| 576 | "async-task", | 576 | "async-task", |
| 577 | "bitflags 2.11.1", | 577 | "bitflags 2.11.1", |
| 578 | "futures-io", | 578 | "futures-io", |
| 579 | - "nix 0.31.2", | 579 | + "nix", |
| 580 | "polling", | 580 | "polling", |
| 581 | "rustix 1.1.4", | 581 | "rustix 1.1.4", |
| 582 | "slab", | 582 | "slab", |
| @@ -775,15 +775,6 @@ dependencies = [ | |||
| 775 | "windows-sys 0.61.2", | 775 | "windows-sys 0.61.2", |
| 776 | ] | 776 | ] |
| 777 | 777 | ||
| 778 | -[[package]] | ||
| 779 | -name = "convert_case" | ||
| 780 | -version = "0.8.0" | ||
| 781 | -source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 782 | -checksum = "baaaa0ecca5b51987b9423ccdc971514dd8b0bb7b4060b983d3664dad3f1f89f" | ||
| 783 | -dependencies = [ | ||
| 784 | - "unicode-segmentation", | ||
| 785 | -] | ||
| 786 | - | ||
| 787 | [[package]] | 778 | [[package]] |
| 788 | name = "cookie-factory" | 779 | name = "cookie-factory" |
| 789 | version = "0.3.3" | 780 | version = "0.3.3" |
| @@ -2056,26 +2047,25 @@ dependencies = [ | |||
| 2056 | 2047 | ||
| 2057 | [[package]] | 2048 | [[package]] |
| 2058 | name = "libspa" | 2049 | name = "libspa" |
| 2059 | -version = "0.9.2" | 2050 | +version = "0.10.0" |
| 2060 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2051 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2061 | -checksum = "b6b8cfa2a7656627b4c92c6b9ef929433acd673d5ab3708cda1b18478ac00df4" | 2052 | +checksum = "2909f3be29d674e7f10604aff18d1bbe1bb03c4cd61c8a8ba19c0b1d162f7d4e" |
| 2062 | dependencies = [ | 2053 | dependencies = [ |
| 2063 | "bitflags 2.11.1", | 2054 | "bitflags 2.11.1", |
| 2064 | "cc", | 2055 | "cc", |
| 2065 | - "convert_case", | ||
| 2066 | "cookie-factory", | 2056 | "cookie-factory", |
| 2067 | "libc", | 2057 | "libc", |
| 2068 | "libspa-sys", | 2058 | "libspa-sys", |
| 2069 | - "nix 0.30.1", | ||
| 2070 | "nom 8.0.0", | 2059 | "nom 8.0.0", |
| 2060 | + "rustix 1.1.4", | ||
| 2071 | "system-deps", | 2061 | "system-deps", |
| 2072 | ] | 2062 | ] |
| 2073 | 2063 | ||
| 2074 | [[package]] | 2064 | [[package]] |
| 2075 | name = "libspa-sys" | 2065 | name = "libspa-sys" |
| 2076 | -version = "0.9.2" | 2066 | +version = "0.10.0" |
| 2077 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2067 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2078 | -checksum = "901049455d2eb6decf9058235d745237952f4804bc584c5fcb41412e6adcc6e0" | 2068 | +checksum = "69ad52764fca54818486f3cf75afec844d1f1a1568c24dcee25d41b1ab007dda" |
| 2079 | dependencies = [ | 2069 | dependencies = [ |
| 2080 | "bindgen", | 2070 | "bindgen", |
| 2081 | "cc", | 2071 | "cc", |
| @@ -2340,18 +2330,6 @@ dependencies = [ | |||
| 2340 | "tracing-subscriber", | 2330 | "tracing-subscriber", |
| 2341 | ] | 2331 | ] |
| 2342 | 2332 | ||
| 2343 | -[[package]] | ||
| 2344 | -name = "nix" | ||
| 2345 | -version = "0.30.1" | ||
| 2346 | -source = "registry+https://github.com/rust-lang/crates.io-index" | ||
| 2347 | -checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6" | ||
| 2348 | -dependencies = [ | ||
| 2349 | - "bitflags 2.11.1", | ||
| 2350 | - "cfg-if", | ||
| 2351 | - "cfg_aliases", | ||
| 2352 | - "libc", | ||
| 2353 | -] | ||
| 2354 | - | ||
| 2355 | [[package]] | 2333 | [[package]] |
| 2356 | name = "nix" | 2334 | name = "nix" |
| 2357 | version = "0.31.2" | 2335 | version = "0.31.2" |
| @@ -2832,26 +2810,23 @@ dependencies = [ | |||
| 2832 | 2810 | ||
| 2833 | [[package]] | 2811 | [[package]] |
| 2834 | name = "pipewire" | 2812 | name = "pipewire" |
| 2835 | -version = "0.9.2" | 2813 | +version = "0.10.0" |
| 2836 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2814 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2837 | -checksum = "9688b89abf11d756499f7c6190711d6dbe5a3acdb30c8fbf001d6596d06a8d44" | 2815 | +checksum = "8585aba8a52ad74ccc633b8e293c1dc4277976bd5d510b925533f34fd6685f38" |
| 2838 | dependencies = [ | 2816 | dependencies = [ |
| 2839 | - "anyhow", | ||
| 2840 | "bitflags 2.11.1", | 2817 | "bitflags 2.11.1", |
| 2841 | "libc", | 2818 | "libc", |
| 2842 | "libspa", | 2819 | "libspa", |
| 2843 | "libspa-sys", | 2820 | "libspa-sys", |
| 2844 | - "nix 0.30.1", | ||
| 2845 | - "once_cell", | ||
| 2846 | "pipewire-sys", | 2821 | "pipewire-sys", |
| 2847 | - "thiserror 2.0.18", | 2822 | + "rustix 1.1.4", |
| 2848 | ] | 2823 | ] |
| 2849 | 2824 | ||
| 2850 | [[package]] | 2825 | [[package]] |
| 2851 | name = "pipewire-sys" | 2826 | name = "pipewire-sys" |
| 2852 | -version = "0.9.2" | 2827 | +version = "0.10.0" |
| 2853 | source = "registry+https://github.com/rust-lang/crates.io-index" | 2828 | source = "registry+https://github.com/rust-lang/crates.io-index" |
| 2854 | -checksum = "cb028afee0d6ca17020b090e3b8fa2d7de23305aef975c7e5192a5050246ea36" | 2829 | +checksum = "f2089f245b548723e60325773c27f586b7a2372c79ea941b246cd0d654706adc" |
| 2855 | dependencies = [ | 2830 | dependencies = [ |
| 2856 | "bindgen", | 2831 | "bindgen", |
| 2857 | "libspa-sys", | 2832 | "libspa-sys", |
Cargo.tomlmodified+1 -1
| @@ -80,7 +80,7 @@ niri-ipc = { version = "26.4.0", path = "niri-ipc", features = ["clap"] } | |||
| 80 | ordered-float = "5.3.0" | 80 | ordered-float = "5.3.0" |
| 81 | pango = { version = "0.21.5", features = ["v1_44"] } | 81 | pango = { version = "0.21.5", features = ["v1_44"] } |
| 82 | pangocairo = "0.21.5" | 82 | pangocairo = "0.21.5" |
| 83 | -pipewire = { version = "0.9.2", optional = true, features = ["v0_3_33"] } | 83 | +pipewire = { version = "0.10.0", optional = true, features = ["v0_3_33"] } |
| 84 | png = "0.18.1" | 84 | png = "0.18.1" |
| 85 | profiling = "1.0.17" | 85 | profiling = "1.0.17" |
| 86 | sd-notify = "0.5.0" | 86 | sd-notify = "0.5.0" |
src/screencasting/pw_utils.rsmodified+2 -1
| @@ -14,6 +14,7 @@ use calloop::timer::{TimeoutAction, Timer}; | |||
| 14 | use calloop::RegistrationToken; | 14 | use calloop::RegistrationToken; |
| 15 | use pipewire::context::ContextRc; | 15 | use pipewire::context::ContextRc; |
| 16 | use pipewire::core::{CoreRc, PW_ID_CORE}; | 16 | use pipewire::core::{CoreRc, PW_ID_CORE}; |
| 17 | +use pipewire::loop_::Timeout; | ||
| 17 | use pipewire::main_loop::MainLoopRc; | 18 | use pipewire::main_loop::MainLoopRc; |
| 18 | use pipewire::properties::PropertiesBox; | 19 | use pipewire::properties::PropertiesBox; |
| 19 | use pipewire::spa::buffer::DataType; | 20 | use pipewire::spa::buffer::DataType; |
| @@ -260,7 +261,7 @@ impl PipeWire { | |||
| 260 | let token = event_loop | 261 | let token = event_loop |
| 261 | .insert_source(generic, move |_, wrapper, _| { | 262 | .insert_source(generic, move |_, wrapper, _| { |
| 262 | let _span = tracy_client::span!("pipewire iteration"); | 263 | let _span = tracy_client::span!("pipewire iteration"); |
| 263 | - wrapper.0.loop_().iterate(Duration::ZERO); | 264 | + wrapper.0.loop_().iterate(Timeout::None); |
| 264 | Ok(PostAction::Continue) | 265 | Ok(PostAction::Continue) |
| 265 | }) | 266 | }) |
| 266 | .unwrap(); | 267 | .unwrap(); |