Update gstreamer to 0.22

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2024-02-24 21:22:09 +01:00
parent 47575092dc
commit 856bd5e750
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -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