libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit bfaa51ad270e2e887dc679033a5ae3d76bf6355d
parent b7eb5ca0cc3b383dcd1356ea817a68c3079a037f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon,  6 Aug 2012 11:42:18 +0000

do not extract mime type in FLAC as it yields false-positives and magic/mime does a better job -- testcase changes

Diffstat:
Msrc/plugins/test_flac.c | 14++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/plugins/test_flac.c b/src/plugins/test_flac.c @@ -40,14 +40,6 @@ main (int argc, char *argv[]) struct SolutionData kraftwerk_sol[] = { { - EXTRACTOR_METATYPE_MIMETYPE, - EXTRACTOR_METAFORMAT_UTF8, - "text/plain", - "audio/flac", - strlen ("audio/flac") + 1, - 0 - }, - { EXTRACTOR_METATYPE_RESOURCE_TYPE, EXTRACTOR_METAFORMAT_UTF8, "text/plain", @@ -65,10 +57,16 @@ main (int argc, char *argv[]) }, { 0, 0, NULL, NULL, 0, -1 } }; + struct SolutionData alien_sol[] = + { + { 0, 0, NULL, NULL, 0, -1 } + }; struct ProblemSet ps[] = { { "testdata/flac_kraftwerk.flac", kraftwerk_sol }, + { "testdata/mpeg_alien.mpg", + alien_sol }, { NULL, NULL } }; return ET_main ("flac", ps);