From: Andre Noll Date: Sun, 28 Oct 2007 02:18:52 +0000 (+0100) Subject: Fix playlist handling. X-Git-Tag: v0.3.0~178 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=5001736840e126342209ae172c04c1328f6bea0d;p=paraslash.git 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. --- 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);