in metadata.h, mp3entry defines as below
struct mp3entry {
char path[MAX_PATH];
char* title;
char* artist;
char* album;
char* genre_string;
char* disc_string;
char* track_string;
char* year_string;
char* composer;
char* comment;
char* albumartist;
char* grouping;
....
}
while calling get_metadata to get id3, it clears the id3 structure, so, when I use the get_metadata as a standalone application to read id3 tags, *** stack smashing detected *** will show up. I think this is something like not standard programming.
anybody could explain where is the real string stores?
Post Merge: April 24, 2011, 06:26:35 AM
got some clues now,
char id3v2buf[ID3V2_BUF_SIZE];
should be the real buffer, errors shows up because default SDL make did not define MEMORYSIZE so the buffer is kinda small.