fill_metadata_from_path modifies a "const" argument

...so convert the argument to non-const

Change-Id: I9e04d817e8674facae7c3be234fd9756f1a4f8ad
This commit is contained in:
Solomon Peachy 2026-05-02 20:41:28 -04:00
parent bafc796ce7
commit 3eba3ecd17
2 changed files with 4 additions and 4 deletions

View file

@ -381,7 +381,7 @@ bool format_buffers_with_offset(int afmt)
/* Simple file type probing by looking at the filename extension. */ /* Simple file type probing by looking at the filename extension. */
unsigned int probe_file_format(const char *filename) unsigned int probe_file_format(const char *filename)
{ {
char *suffix; const char *suffix;
unsigned int i; unsigned int i;
suffix = strrchr(filename, '.'); suffix = strrchr(filename, '.');
@ -546,7 +546,7 @@ void wipe_mp3entry(struct mp3entry *id3)
} }
/* Glean what is possible from the filename alone - does not parse metadata */ /* Glean what is possible from the filename alone - does not parse metadata */
void fill_metadata_from_path(struct mp3entry *id3, const char *trackname) void fill_metadata_from_path(struct mp3entry *id3, char *trackname)
{ {
char *p; char *p;

View file

@ -335,7 +335,7 @@ void adjust_mp3entry(struct mp3entry *entry, void *dest, const void *orig);
void copy_mp3entry(struct mp3entry *dest, const struct mp3entry *orig); void copy_mp3entry(struct mp3entry *dest, const struct mp3entry *orig);
void wipe_mp3entry(struct mp3entry *id3); void wipe_mp3entry(struct mp3entry *id3);
void fill_metadata_from_path(struct mp3entry *id3, const char *trackname); void fill_metadata_from_path(struct mp3entry *id3, char *trackname);
int get_audio_base_codec_type(int type); int get_audio_base_codec_type(int type);
const char * get_codec_string(int type); const char * get_codec_string(int type);
bool rbcodec_format_is_atomic(int afmt); bool rbcodec_format_is_atomic(int afmt);