From 856bd5e7504dcd0f9c4cbbfbd14563e39a74e0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Sat, 24 Feb 2024 21:22:09 +0100 Subject: [PATCH] Update gstreamer to 0.22 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- playback/Cargo.toml | 6 +++--- playback/src/audio_backend/gstreamer.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/playback/Cargo.toml b/playback/Cargo.toml index d29a3af7d..63245bb0a 100644 --- a/playback/Cargo.toml +++ b/playback/Cargo.toml @@ -37,9 +37,9 @@ libpulse-binding = { version = "2", optional = true, default-features = f libpulse-simple-binding = { version = "2", optional = true, default-features = false } jack = { version = "0.11", optional = true } sdl2 = { version = "0.36", optional = true } -gstreamer = { version = "0.21.2", optional = true } -gstreamer-app = { version = "0.21.2", optional = true } -gstreamer-audio = { version = "0.21.2", optional = true } +gstreamer = { version = "0.22.1", optional = true } +gstreamer-app = { version = "0.22.0", optional = true } +gstreamer-audio = { version = "0.22.0", optional = true } glib = { version = "0.19.2", optional = true } # Rodio dependencies diff --git a/playback/src/audio_backend/gstreamer.rs b/playback/src/audio_backend/gstreamer.rs index e2111974c..3b82f7358 100644 --- a/playback/src/audio_backend/gstreamer.rs +++ b/playback/src/audio_backend/gstreamer.rs @@ -60,13 +60,13 @@ impl Open for GstreamerSink { let sink = match device { None => { // no need to dither twice; use librespot dithering instead - gst::parse_bin_from_description( + gst::parse::bin_from_description( "audioconvert dithering=none ! audioresample ! autoaudiosink", true, ) .expect("Failed to create default GStreamer sink") } - Some(ref x) => gst::parse_bin_from_description(x, true) + Some(ref x) => gst::parse::bin_from_description(x, true) .expect("Failed to create custom GStreamer sink"), }; pipeline