mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Update most dependencies
This commit is contained in:
parent
51030545db
commit
d6b79fae59
15 changed files with 687 additions and 532 deletions
|
|
@ -4,13 +4,13 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.13.0"
|
||||
glib = "0.15.11"
|
||||
gstreamer = "0.18.8"
|
||||
gstreamer-pbutils = "0.18.7"
|
||||
log = "0.4.16"
|
||||
once_cell = "1.10.0"
|
||||
rand = "0.8.5"
|
||||
thiserror = "1.0.31"
|
||||
sha2 = "0.10.2"
|
||||
tokio = { version = "1.18.0", features = ["sync"] }
|
||||
base64 = "0.13"
|
||||
glib = "0.16"
|
||||
gstreamer = "0.19"
|
||||
gstreamer-pbutils = "0.19"
|
||||
log = "0.4"
|
||||
once_cell = "1"
|
||||
rand = "0.8"
|
||||
thiserror = "1"
|
||||
sha2 = "0.10"
|
||||
tokio = { version = "1", features = ["sync"] }
|
||||
|
|
|
|||
|
|
@ -18,11 +18,11 @@ pub(super) fn new() -> Result<ImportSession> {
|
|||
// Build the GStreamer pipeline. It will contain a fakesink initially to be able to run it
|
||||
// forward to the paused state without specifying a file name before knowing the tracks.
|
||||
|
||||
let cdparanoiasrc = ElementFactory::make("cdparanoiasrc", None)?;
|
||||
let queue = ElementFactory::make("queue", None)?;
|
||||
let audioconvert = ElementFactory::make("audioconvert", None)?;
|
||||
let flacenc = ElementFactory::make("flacenc", None)?;
|
||||
let fakesink = gstreamer::ElementFactory::make("fakesink", None)?;
|
||||
let cdparanoiasrc = ElementFactory::make("cdparanoiasrc").build()?;
|
||||
let queue = ElementFactory::make("queue").build()?;
|
||||
let audioconvert = ElementFactory::make("audioconvert").build()?;
|
||||
let flacenc = ElementFactory::make("flacenc").build()?;
|
||||
let fakesink = gstreamer::ElementFactory::make("fakesink").build()?;
|
||||
|
||||
let pipeline = gstreamer::Pipeline::new(None);
|
||||
pipeline.add_many(&[&cdparanoiasrc, &queue, &audioconvert, &flacenc, &fakesink])?;
|
||||
|
|
@ -64,7 +64,7 @@ pub(super) fn new() -> Result<ImportSession> {
|
|||
fakesink.set_state(gstreamer::State::Null)?;
|
||||
pipeline.remove(&fakesink)?;
|
||||
|
||||
let filesink = gstreamer::ElementFactory::make("filesink", None)?;
|
||||
let filesink = gstreamer::ElementFactory::make("filesink").build()?;
|
||||
pipeline.add(&filesink)?;
|
||||
gstreamer::Element::link(&flacenc, &filesink)?;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue