*
* \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;
.afhi = afd->afhi,
.afsi = afd->afsi,
.path = path,
- .score = afd->score,
+ .score = score,
.hash = file_hash
};
struct para_buffer pb = {.buf = NULL};