]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - afs.c
Kill afd->current_play_mode.
[paraslash.git] / afs.c
diff --git a/afs.c b/afs.c
index 20f2455e30a3d1fe940d84d9d5616fd97e5ee30d..355400874377a82cd1b5c085f6d3c729411ce540 100644 (file)
--- a/afs.c
+++ b/afs.c
@@ -486,12 +486,13 @@ int open_next_audio_file(void)
        struct audio_file_data afd;
        int ret, shmid;
        char buf[8];
+       long score;
 
        PARA_NOTICE_LOG("getting next audio file\n");
-       ret = score_get_best(&aft_row, &afd.score);
+       ret = score_get_best(&aft_row, &score);
        if (ret < 0)
                return ret;
-       ret = open_and_update_audio_file(aft_row, &afd);
+       ret = open_and_update_audio_file(aft_row, &afd, score);
        if (ret < 0)
                return ret;
        shmid = ret;