Skip to content
Snippets Groups Projects
Commit 8809c974 authored by Anton Khirnov's avatar Anton Khirnov Committed by Vittorio Giovara
Browse files

id3v2: constify the 'tag' parameter to special metadata parsing callback

Those functions should not ever modify it.
parent f86f39cb
No related branches found
No related tags found
No related merge requests found
...@@ -300,7 +300,7 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen, ...@@ -300,7 +300,7 @@ static void read_ttag(AVFormatContext *s, AVIOContext *pb, int taglen,
* Parse GEOB tag into a ID3v2ExtraMetaGEOB struct. * Parse GEOB tag into a ID3v2ExtraMetaGEOB struct.
*/ */
static void read_geobtag(AVFormatContext *s, AVIOContext *pb, int taglen, static void read_geobtag(AVFormatContext *s, AVIOContext *pb, int taglen,
char *tag, ID3v2ExtraMeta **extra_meta) const char *tag, ID3v2ExtraMeta **extra_meta)
{ {
ID3v2ExtraMetaGEOB *geob_data = NULL; ID3v2ExtraMetaGEOB *geob_data = NULL;
ID3v2ExtraMeta *new_extra = NULL; ID3v2ExtraMeta *new_extra = NULL;
...@@ -432,7 +432,7 @@ static void free_apic(void *obj) ...@@ -432,7 +432,7 @@ static void free_apic(void *obj)
} }
static void read_apic(AVFormatContext *s, AVIOContext *pb, int taglen, static void read_apic(AVFormatContext *s, AVIOContext *pb, int taglen,
char *tag, ID3v2ExtraMeta **extra_meta) const char *tag, ID3v2ExtraMeta **extra_meta)
{ {
int enc, pic_type; int enc, pic_type;
char mimetype[64]; char mimetype[64];
...@@ -508,7 +508,7 @@ fail: ...@@ -508,7 +508,7 @@ fail:
typedef struct ID3v2EMFunc { typedef struct ID3v2EMFunc {
const char *tag3; const char *tag3;
const char *tag4; const char *tag4;
void (*read)(AVFormatContext *, AVIOContext *, int, char *, void (*read)(AVFormatContext *, AVIOContext *, int, const char *,
ID3v2ExtraMeta **); ID3v2ExtraMeta **);
void (*free)(void *obj); void (*free)(void *obj);
} ID3v2EMFunc; } ID3v2EMFunc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment