Codecs: mp3: Move strip tags to codec

Another fix for FS#13626 (replacement for 2bd88936f7)

Change-Id: Ife5f65539457559fd908d0048d4df94649b0b894
This commit is contained in:
Roman Artiukhin 2025-05-22 15:26:54 +03:00 committed by Solomon Peachy
parent 78903e9d38
commit 38105860dc
6 changed files with 24 additions and 0 deletions

View file

@ -1408,6 +1408,16 @@ ssize_t bufread(int handle_id, size_t size, void *dest)
return size;
}
off_t bufstripsize(int handle_id, off_t size)
{
struct memory_handle *h = find_handle(handle_id);
if (!h || h->filesize < size)
return ERR_INVALID_VALUE;
h->filesize = size;
return size;
}
/* Update the "data" pointer to make the handle's data available to the caller.
Return the length of the available linear data or < 0 for failure (handle
not found).