From 01860627bd6db4426ca162611ad97af9456716fd Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 12 Aug 2025 10:43:23 -0400 Subject: [PATCH] test_codec: Fix crash due to missing strip_filesize function Probably only affects mp3 files. (Introduced in 38105860dca8ee4475dbaa4ef7e981a4e34d7d8d) Change-Id: I1946e7be604784ec47ff21a47aab81e91d933a3d --- apps/plugins/test_codec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 9594e78f96..e33a04c44d 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -524,6 +524,11 @@ static void configure(int setting, intptr_t value) } +static void strip_filesize(off_t size) +{ + ci.filesize = size; +} + static void init_ci(void) { /* --- Our "fake" implementations of the codec API functions. --- */ @@ -547,6 +552,7 @@ static void init_ci(void) ci.configure = configure; ci.get_command = get_command; ci.loop_track = loop_track; + ci.strip_filesize = strip_filesize; /* --- "Core" functions --- */