mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #202 from kbrah/master
Fixes player initialization in the play.rs
This commit is contained in:
commit
59cff3d4c5
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ fn main() {
|
||||||
let session = core.run(Session::connect(session_config, credentials, None, handle))
|
let session = core.run(Session::connect(session_config, credentials, None, handle))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let player = Player::new(player_config, session.clone(), None, move || (backend)(None));
|
let (player, _)= Player::new(player_config, session.clone(), None, move || (backend)(None));
|
||||||
|
|
||||||
println!("Playing...");
|
println!("Playing...");
|
||||||
core.run(player.load(track, true, 0)).unwrap();
|
core.run(player.load(track, true, 0)).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue