Update gtk-rs crates

This commit is contained in:
Elias Projahn 2022-04-16 12:24:30 +02:00
parent 3a27113bda
commit ff17549b8b
39 changed files with 324 additions and 313 deletions

View file

@ -5,10 +5,10 @@ edition = "2021"
[dependencies]
fragile = "1.0.0"
gio = "0.14.0"
glib = "0.14.0"
gstreamer = "0.17.0"
gstreamer-player = "0.17.0"
gio = "0.15.10"
glib = "0.15.10"
gstreamer = "0.18.7"
gstreamer-player = "0.18.0"
log = { version = "0.4.14", features = ["std"] }
musicus_database = { version = "0.1.0", path = "../database" }
musicus_import = { version = "0.1.0", path = "../import" }
@ -16,4 +16,4 @@ thiserror = "1.0.23"
tokio = { version = "1.4.0", features = ["sync"] }
[target.'cfg(target_os = "linux")'.dependencies]
mpris-player = "0.6.0"
mpris-player = "0.6.1"

View file

@ -352,7 +352,7 @@ impl Player {
let uri = glib::filename_to_uri(&path, None)
.map_err(|_| Error::Other(format!("Failed to create URI from path: {}", path)))?;
self.player.set_uri(&uri);
self.player.set_uri(Some(&uri));
if self.is_playing() {
self.player.play();