static void mp4_getSongInfo(char *filename) { if(mp4cfg.file_type == FILE_MP4) getMP4info(filename); else if(mp4cfg.file_type == FILE_AAC) ; }
static void mp4_getSongInfo(char *filename) { FILE* mp4file; if((mp4file = fopen(filename, "rb"))){ if (mp4cfg.file_type == FILE_UNKNOW) mp4_get_file_type(mp4file); fseek(mp4file, 0, SEEK_SET); if(mp4cfg.file_type == FILE_MP4) getMP4info(filename, mp4file); else if(mp4cfg.file_type == FILE_AAC) /* * check the id3tagv2 */ ; fclose(mp4file); } }