Merge pull request #202 from kbrah/master

Fixes player initialization in the play.rs
This commit is contained in:
Sasha Hilton 2018-04-25 20:16:46 +02:00 committed by GitHub
commit 59cff3d4c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();