X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aft.c;h=3b2f9172e56785292323e76c85a9f44e574186f5;hp=9f39d705620ee5b3b0e5e784b099730b078350e9;hb=037059c8a25ce134af1eaa6c3fa8ac96b9f7e0b6;hpb=fa578bf1d070161cafcbcc69ca7b810414ee1a4b diff --git a/aft.c b/aft.c index 9f39d705..3b2f9172 100644 --- a/aft.c +++ b/aft.c @@ -8,7 +8,6 @@ #include #include /* readdir() */ -#include #include #include #include @@ -1124,6 +1123,7 @@ int open_and_update_audio_file(struct osl_row *aft_row, long score, new_afsi.last_played = time(NULL); save_afsi(&new_afsi, &afsi_obj); /* in-place update */ + afd->audio_format_id = old_afsi.audio_format_id; load_chunk_table(&afd->afhi, chunk_table_obj.data); ret = make_status_items(afd, &old_afsi, path, score, file_hash); if (ret < 0) @@ -1135,6 +1135,8 @@ int open_and_update_audio_file(struct osl_row *aft_row, long score, err: free(afd->afhi.chunk_table); osl_close_disk_object(&chunk_table_obj); + if (ret < 0) + PARA_ERROR_LOG("%s: %s\n", path, para_strerror(-ret)); return ret; }