From 07c9664733e92fdd1e9a7d2372a8ca35508e1ca8 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Sun, 1 Jun 2025 13:06:14 +0200 Subject: [PATCH v2 06/11] fftools/resources/resman: Use proper logcontext Signed-off-by: Andreas Rheinhardt --- fftools/resources/resman.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fftools/resources/resman.c b/fftools/resources/resman.c index dcbf43097d..1c0cdb942d 100644 --- a/fftools/resources/resman.c +++ b/fftools/resources/resman.c @@ -160,13 +160,13 @@ char *ff_resman_get_string(FFResourceId resource_id) int ret = decompress_gzip(ctx, (uint8_t *)resource_definition.data, *resource_definition.data_len, &out, &out_len); if (ret) { - av_log(NULL, AV_LOG_ERROR, "Unable to decompress the resource with ID %d\n", resource_id); + av_log(ctx, AV_LOG_ERROR, "Unable to decompress the resource with ID %d\n", resource_id); goto end; } dict_ret = av_dict_set(&ctx->resource_dic, resource_definition.name, out, 0); if (dict_ret < 0) { - av_log(NULL, AV_LOG_ERROR, "Failed to store decompressed resource in dictionary: %d\n", dict_ret); + av_log(ctx, AV_LOG_ERROR, "Failed to store decompressed resource in dictionary: %d\n", dict_ret); av_freep(&out); goto end; } @@ -176,7 +176,7 @@ char *ff_resman_get_string(FFResourceId resource_id) dict_ret = av_dict_set(&ctx->resource_dic, resource_definition.name, (const char *)resource_definition.data, 0); if (dict_ret < 0) { - av_log(NULL, AV_LOG_ERROR, "Failed to store resource in dictionary: %d\n", dict_ret); + av_log(ctx, AV_LOG_ERROR, "Failed to store resource in dictionary: %d\n", dict_ret); goto end; } @@ -184,7 +184,7 @@ char *ff_resman_get_string(FFResourceId resource_id) dic_entry = av_dict_get(ctx->resource_dic, resource_definition.name, NULL, 0); if (!dic_entry) { - av_log(NULL, AV_LOG_ERROR, "Failed to retrieve resource from dictionary after storing it\n"); + av_log(ctx, AV_LOG_ERROR, "Failed to retrieve resource from dictionary after storing it\n"); goto end; } } -- 2.45.2