kill afd->score.
[paraslash.git] / aft.c
diff --git a/aft.c b/aft.c
index e41073a..d2c7ced 100644 (file)
--- a/aft.c
+++ b/aft.c
@@ -665,7 +665,8 @@ int load_afd(int shmid, struct audio_file_data *afd)
  *
  * \return Positive on success, negative on errors.
  */
-int open_and_update_audio_file(struct osl_row *aft_row, struct audio_file_data *afd)
+int open_and_update_audio_file(struct osl_row *aft_row,
+       struct audio_file_data *afd, long score)
 {
        HASH_TYPE *aft_hash, file_hash[HASH_SIZE];
        struct osl_object afsi_obj;
@@ -717,7 +718,7 @@ int open_and_update_audio_file(struct osl_row *aft_row, struct audio_file_data *
                        .afhi = afd->afhi,
                        .afsi = afd->afsi,
                        .path = path,
-                       .score = afd->score,
+                       .score = score,
                        .hash = file_hash
                };
                struct para_buffer pb = {.buf = NULL};