From 5001736840e126342209ae172c04c1328f6bea0d Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 28 Oct 2007 03:18:52 +0100 Subject: [PATCH] Fix playlist handling. The playlist code didn't act upon AFSI change which is the event that happens when a file is selected for streaming. So call playlist_update_audio_file() whenever this event occurs. --- playlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/playlist.c b/playlist.c index 5012d4c4..95c2230b 100644 --- a/playlist.c +++ b/playlist.c @@ -227,8 +227,11 @@ int playlists_event_handler(enum afs_events event, __a_unused struct para_buffer *pb, void *data) { int ret; + struct afsi_change_event_data *aced = data; switch(event) { + case AFSI_CHANGE: + return playlist_update_audio_file(aced->aft_row); case AUDIO_FILE_RENAME: case AUDIO_FILE_ADD: return handle_audio_file_event(event, data); -- 2.39.5