1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-04 10:19:27 +02:00

Merge pull request #452 from kaymes/improved_events

Add more data to player events and fire more of them
This commit is contained in:
Anton Voyl 2020-05-11 08:57:18 +02:00 committed by GitHub
commit 0aa9bc60e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 77 additions and 26 deletions

View file

@ -543,6 +543,7 @@ impl Future for Main {
if let Some(ref mut player_event_channel) = self.player_event_channel {
if let Async::Ready(Some(event)) = player_event_channel.poll().unwrap() {
progress = true;
if let Some(ref program) = self.player_event_program {
if let Some(child) = run_program_on_events(event, program) {
let child = child