From 371b9f4aa3b16935f410a40e7ede4e43e63f87e6 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 15 Sep 2007 10:41:48 +0200 Subject: [PATCH] com_add(): Add missing return statement. Duplicates were added twice in force mode. --- aft.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aft.c b/aft.c index d88be97e..4845a544 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 */ @@ -1340,9 +1341,7 @@ static int com_add_callback(const struct osl_object *query, &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; -- 2.39.5