X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=aft.c;h=40dc1d920dcc5b9abbe59cb21277559336f0f3ab;hb=a3b43ea4ccc39b56ec4de003f83836b75905afe2;hp=d88be97e4c175cfb588291ae2a34f2f7571275bf;hpb=a7feb744f32ed508b05ce7a0c14265a24705a4a7;p=paraslash.git diff --git a/aft.c b/aft.c index d88be97e..40dc1d92 100644 --- a/aft.c +++ b/aft.c @@ -683,6 +683,7 @@ static int print_list_item(struct ls_data *d, struct ls_options *opts, sprintf(score_buf, "%li ", d->score); } + PARA_NOTICE_LOG("id: %s, %d\n", d->path, afsi->audio_format_id); if (opts->mode == LS_MODE_LONG) { para_printf(b, "%s" /* score */ @@ -1268,7 +1269,7 @@ static int com_add_callback(const struct osl_object *query, objs[AFTCOL_PATH].data = path; objs[AFTCOL_PATH].size = strlen(path) + 1; - PARA_DEBUG_LOG("request to add %s with hash %s\n", path, asc); + PARA_INFO_LOG("request to add %s\n", path); hs = find_hash_sister(hash); ret = aft_get_row_of_path(path, &pb); if (ret < 0 && ret != -E_RB_KEY_NOT_FOUND) @@ -1328,21 +1329,19 @@ static int com_add_callback(const struct osl_object *query, const void *row = pb? pb : hs; /* update afhi and chunk_table */ if (flags & ADD_FLAG_VERBOSE) - PARA_NOTICE_LOG("updating audio format handler info (%zd bytes)\n", + PARA_DEBUG_LOG("updating audio format handler info (%zd bytes)\n", objs[AFTCOL_AFHI].size); ret = osl_update_object(audio_file_table, row, AFTCOL_AFHI, &objs[AFTCOL_AFHI]); if (ret < 0) return ret; if (flags & ADD_FLAG_VERBOSE) - PARA_NOTICE_LOG("updating chunk table\n"); + PARA_DEBUG_LOG("updating chunk table\n"); ret = osl_update_object(audio_file_table, row, AFTCOL_CHUNKS, &objs[AFTCOL_CHUNKS]); if (ret < 0) return ret; - ret = mood_update_audio_file(row, NULL); - if (ret < 0) - return ret; + return mood_update_audio_file(row, NULL); } /* new entry, use default afsi */ default_afsi.last_played = time(NULL) - 365 * 24 * 60 * 60;