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:
Nick Steel 2024-09-26 09:54:27 +01:00
parent e006c20556
commit 32aaf19fa3
4 changed files with 5 additions and 4 deletions

View file

@ -11,7 +11,8 @@ rust-version.workspace = true
[dependencies]
gst.workspace = true
gst-base.workspace = true
librespot = { version = "0.4", default-features = false }
librespot-core = "0.4"
librespot-playback = "0.4"
tokio = "1.0"
futures = "0.3"
anyhow = "1.0"

View file

@ -11,7 +11,7 @@ use anyhow::bail;
use gst::glib;
use gst::prelude::*;
use librespot::core::{
use librespot_core::{
authentication::Credentials, cache::Cache, config::SessionConfig, session::Session,
spotify_id::SpotifyId,
};

View file

@ -17,7 +17,7 @@ use gst::prelude::*;
use gst::subclass::prelude::*;
use gst_base::subclass::{base_src::CreateSuccess, prelude::*};
use librespot::playback::{
use librespot_playback::{
audio_backend::{Sink, SinkResult},
config::PlayerConfig,
convert::Converter,

View file

@ -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 {
match value {
Bitrate::B96 => Self::Bitrate96,