mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Codecs: mp3: Move strip tags to codec
Another fix for FS#13626 (replacement for 2bd88936f7
)
Change-Id: Ife5f65539457559fd908d0048d4df94649b0b894
This commit is contained in:
parent
78903e9d38
commit
38105860dc
6 changed files with 24 additions and 0 deletions
|
@ -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).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue