"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/plugins/xm_extractor.c" between
libextractor-1.7.tar.gz and libextractor-1.8.tar.gz

About: GNU libextractor is a library used to extract meta-data from files of arbitrary type.

xm_extractor.c  (libextractor-1.7):xm_extractor.c  (libextractor-1.8)
skipping to change at line 83 skipping to change at line 83
sizeof (struct Header))) sizeof (struct Header)))
return; return;
head = data; head = data;
/* Check "magic" id bytes */ /* Check "magic" id bytes */
if (memcmp (head->magicid, "Extended Module: ", 17)) if (memcmp (head->magicid, "Extended Module: ", 17))
return; return;
ADD("audio/x-xm", EXTRACTOR_METATYPE_MIMETYPE); ADD("audio/x-xm", EXTRACTOR_METATYPE_MIMETYPE);
/* Version of Tracker */ /* Version of Tracker */
snprintf (xmversion, snprintf (xmversion,
sizeof (xmversion), sizeof (xmversion),
"%d.%d", "%u.%u",
head->version[1], head->version[1],
head->version[0]); head->version[0]);
ADD (xmversion, EXTRACTOR_METATYPE_FORMAT_VERSION); ADD (xmversion, EXTRACTOR_METATYPE_FORMAT_VERSION);
/* Song title */ /* Song title */
memcpy (&title, head->title, 20); memcpy (&title, head->title, 20);
n = 19; n = 19;
while ( (n > 0) && isspace ((unsigned char) title[n])) while ( (n > 0) && isspace ((unsigned char) title[n]))
n--; n--;
title[n + 1] = '\0'; title[n + 1] = '\0';
ADD (title, EXTRACTOR_METATYPE_TITLE); ADD (title, EXTRACTOR_METATYPE_TITLE);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)