]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - playlist.c
para.css: Increase font size.
[paraslash.git] / playlist.c
index 62fd831acfa1bff04097b59dad33b3b22cee41f6..95c2230bfca251040fcc5d3224de1a17926026f1 100644 (file)
@@ -28,7 +28,7 @@ static struct playlist_info current_playlist;
  *
  * \return The return value of score_update().
  */
-int playlist_update_audio_file(struct osl_row *aft_row)
+static int playlist_update_audio_file(const struct osl_row *aft_row)
 {
        /* always re-insert to the top of the tree */
        return score_update(aft_row, 0);
@@ -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);