mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-03 15:58:42 +00:00
spotify: depend on librespot-core and librespot-playback only
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1818>
This commit is contained in:
parent
e006c20556
commit
32aaf19fa3
4 changed files with 5 additions and 4 deletions
|
@ -11,7 +11,8 @@ rust-version.workspace = true
|
||||||
[dependencies]
|
[dependencies]
|
||||||
gst.workspace = true
|
gst.workspace = true
|
||||||
gst-base.workspace = true
|
gst-base.workspace = true
|
||||||
librespot = { version = "0.4", default-features = false }
|
librespot-core = "0.4"
|
||||||
|
librespot-playback = "0.4"
|
||||||
tokio = "1.0"
|
tokio = "1.0"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
|
|
|
@ -11,7 +11,7 @@ use anyhow::bail;
|
||||||
use gst::glib;
|
use gst::glib;
|
||||||
use gst::prelude::*;
|
use gst::prelude::*;
|
||||||
|
|
||||||
use librespot::core::{
|
use librespot_core::{
|
||||||
authentication::Credentials, cache::Cache, config::SessionConfig, session::Session,
|
authentication::Credentials, cache::Cache, config::SessionConfig, session::Session,
|
||||||
spotify_id::SpotifyId,
|
spotify_id::SpotifyId,
|
||||||
};
|
};
|
||||||
|
|
|
@ -17,7 +17,7 @@ use gst::prelude::*;
|
||||||
use gst::subclass::prelude::*;
|
use gst::subclass::prelude::*;
|
||||||
use gst_base::subclass::{base_src::CreateSuccess, prelude::*};
|
use gst_base::subclass::{base_src::CreateSuccess, prelude::*};
|
||||||
|
|
||||||
use librespot::playback::{
|
use librespot_playback::{
|
||||||
audio_backend::{Sink, SinkResult},
|
audio_backend::{Sink, SinkResult},
|
||||||
config::PlayerConfig,
|
config::PlayerConfig,
|
||||||
convert::Converter,
|
convert::Converter,
|
||||||
|
|
|
@ -29,7 +29,7 @@ impl Default for Bitrate {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Bitrate> for librespot::playback::config::Bitrate {
|
impl From<Bitrate> for librespot_playback::config::Bitrate {
|
||||||
fn from(value: Bitrate) -> Self {
|
fn from(value: Bitrate) -> Self {
|
||||||
match value {
|
match value {
|
||||||
Bitrate::B96 => Self::Bitrate96,
|
Bitrate::B96 => Self::Bitrate96,
|
||||||
|
|
Loading…
Reference in a new issue