fixed example play.rs initalizing player

This commit is contained in:
Lasse Linkola 2018-04-16 19:04:31 +03:00
parent 03de235d2f
commit d62b72f24d

View file

@ -36,7 +36,7 @@ fn main() {
let session = core.run(Session::connect(session_config, credentials, None, handle))
.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...");
core.run(player.load(track, true, 0)).unwrap();