From f555235f2b66aa99401d8ba8a5da013ed5f92ad3 Mon Sep 17 00:00:00 2001 From: TheM14 Date: Sun, 1 Nov 2026 20:04:34 +0800 Subject: [PATCH] Remove the cache lines the decoder was left with The previous change dropped the SOFA input but left two lines of the old disk cache block inside create(): the stream config was still assigned hrtf_cache_policy, which the kernel no longer has, and the brace that closed the block ended the binaural branch early. Both compilers stopped there, so the Windows and the Android build agreed on the error. The frame-length message in feed() is a size_t and uses %zu now, which the same build reported as a warning. --- fork/files/audio/decode/ad_joc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fork/files/audio/decode/ad_joc.c b/fork/files/audio/decode/ad_joc.c index 3e38350..5d4fb57 100644 --- a/fork/files/audio/decode/ad_joc.c +++ b/fork/files/audio/decode/ad_joc.c @@ -209,7 +209,7 @@ static void feed(struct priv *p, int end_of_stream) in.byte_count = (uint32_t)bytes; uint32_t consumed = 0; if (joc_stream_push(p->stream, &in, NULL, &consumed) != JOC_OK) { - MP_ERR(p->public.f, "renderer refused an E-AC-3 frame (%u bytes): %s\n", + MP_ERR(p->public.f, "renderer refused an E-AC-3 frame (%zu bytes): %s\n", bytes, joc_last_error_detail()); break; } @@ -779,8 +779,6 @@ static struct mp_decoder *create(struct mp_filter *parent, cfg.object_delay_samples = 1473; if (binaural) { cfg.personalized_headphone_path = hrtf_path; - cfg.hrtf_cache_policy = 1; - } } else { cfg.speaker_layout_name = layout; }