]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Fix playlist handling.
authorAndre Noll <maan@systemlinux.org>
Sun, 28 Oct 2007 02:18:52 +0000 (03:18 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 28 Oct 2007 02:18:52 +0000 (03:18 +0100)
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

index 5012d4c446739db9617eb00671bfe15a298e62f9..95c2230bfca251040fcc5d3224de1a17926026f1 100644 (file)
@@ -227,8 +227,11 @@ int playlists_event_handler(enum afs_events event,
        __a_unused struct para_buffer *pb, void *data)
 {
        int ret;
        __a_unused struct para_buffer *pb, void *data)
 {
        int ret;
+       struct afsi_change_event_data *aced = data;
 
        switch(event) {
 
        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);
        case AUDIO_FILE_RENAME:
        case AUDIO_FILE_ADD:
                return handle_audio_file_event(event, data);