X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=aft.c;h=0f15cd28e96cf726275508faa63b07d4a75e190b;hp=1a0fdc79d5f591172b9edadb759baba072563b3a;hb=2d8f0c21ac8735fc06d1aa88e7873614392e3042;hpb=a044e78188411351d798842df1778316c881f5ed;ds=inline diff --git a/aft.c b/aft.c index 1a0fdc79..0f15cd28 100644 --- a/aft.c +++ b/aft.c @@ -1722,10 +1722,12 @@ static int check_audio_file(struct osl_row *row, void *data) } ret = lyr_get_name_by_id(afsi.lyrics_id, &blob_name); if (ret < 0) - para_printf(pb, "%s lyrics id: %s\n", path, PARA_STRERROR(-ret)); + para_printf(pb, "%s lyrics id %u: %s\n", path, afsi.lyrics_id, + PARA_STRERROR(-ret)); ret = img_get_name_by_id(afsi.image_id, &blob_name); if (ret < 0) - para_printf(pb, "%s image id: %s\n", path, PARA_STRERROR(-ret)); + para_printf(pb, "%s image id %u: %s\n", path, afsi.image_id, + PARA_STRERROR(-ret)); return 1; } @@ -1733,9 +1735,8 @@ int aft_check_callback(__a_unused const struct osl_object *query, struct osl_obj { struct para_buffer pb = {.buf = NULL}; + para_printf(&pb, "checking audio file table...\n"); audio_file_loop(&pb, check_audio_file); - if (!pb.size) - return 0; result->data = pb.buf; result->size = pb.size; return 1;