Browse Source

fixed example play.rs initalizing player

Lasse Linkola 7 years ago
parent
commit
d62b72f24d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/play.rs

+ 1 - 1
examples/play.rs

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