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,9 +5,9 @@ edition = "2021"
[dependencies]
base64 = "0.13.0"
glib = "0.14.0"
gstreamer = "0.17.0"
gstreamer-pbutils = "0.17.0"
glib = "0.15.10"
gstreamer = "0.18.7"
gstreamer-pbutils = "0.18.7"
log = "0.4.14"
once_cell = "1.5.2"
rand = "0.7.3"

View file

@ -118,13 +118,13 @@ pub(super) fn new() -> Result<ImportSession> {
for track in &tracks_clone {
info!("Starting to rip track {}.", track.number);
cdparanoiasrc.set_property("track", &track.number)?;
cdparanoiasrc.set_property("track", &track.number);
// The filesink needs to be reset to be able to change the file location.
filesink.set_state(gstreamer::State::Null)?;
let path = track.path.to_str().unwrap();
filesink.set_property("location", &path)?;
filesink.set_property("location", &path);
// This will also affect the filesink as expected.
pipeline.set_state(gstreamer::State::Playing)?;