examples/player: set_uri now allows None to be passed in

This commit is contained in:
Marijn Suijten 2021-09-21 09:58:07 +02:00
parent 13165938ab
commit 64ec364259

View file

@ -28,7 +28,7 @@ fn main_loop(uri: &str) -> Result<(), Error> {
);
// Tell the player what uri to play.
player.set_uri(uri);
player.set_uri(Some(uri));
let error = Arc::new(Mutex::new(Ok(())));