[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r23134 - in Extractor/src/plugins: . testdata
From: |
gnunet |
Subject: |
[GNUnet-SVN] r23134 - in Extractor/src/plugins: . testdata |
Date: |
Mon, 6 Aug 2012 12:54:05 +0200 |
Author: grothoff
Date: 2012-08-06 12:54:05 +0200 (Mon, 06 Aug 2012)
New Revision: 23134
Added:
Extractor/src/plugins/testdata/mpeg_alien.mpg
Modified:
Extractor/src/plugins/Makefile.am
Extractor/src/plugins/test_mpeg.c
Log:
adding another test
Modified: Extractor/src/plugins/Makefile.am
===================================================================
--- Extractor/src/plugins/Makefile.am 2012-08-06 10:49:58 UTC (rev 23133)
+++ Extractor/src/plugins/Makefile.am 2012-08-06 10:54:05 UTC (rev 23134)
@@ -15,7 +15,9 @@
testdata/ogg_courseclear.ogg \
testdata/gif_image.gif \
testdata/rpm_test.rpm \
- testdata/flac_kraftwerk.flac
+ testdata/flac_kraftwerk.flac \
+ testdata/mpeg_alien.mpg \
+ testdata/mpeg_melt.mpg
if HAVE_VORBISFILE
PLUGIN_OGG=libextractor_ogg.la
Modified: Extractor/src/plugins/test_mpeg.c
===================================================================
--- Extractor/src/plugins/test_mpeg.c 2012-08-06 10:49:58 UTC (rev 23133)
+++ Extractor/src/plugins/test_mpeg.c 2012-08-06 10:54:05 UTC (rev 23134)
@@ -73,10 +73,40 @@
},
{ 0, 0, NULL, NULL, 0, -1 }
};
+ struct SolutionData alien_sol[] =
+ {
+ {
+ EXTRACTOR_METATYPE_MIMETYPE,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "video/mpeg",
+ strlen ("video/mpeg") + 1,
+ 0
+ },
+ {
+ EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "320x240",
+ strlen ("320x240") + 1,
+ 0
+ },
+ {
+ EXTRACTOR_METATYPE_FORMAT_VERSION,
+ EXTRACTOR_METAFORMAT_UTF8,
+ "text/plain",
+ "MPEG1",
+ strlen ("MPEG1") + 1,
+ 0
+ },
+ { 0, 0, NULL, NULL, 0, -1 }
+ };
struct ProblemSet ps[] =
{
{ "testdata/mpeg_melt.mpg",
melt_sol },
+ { "testdata/mpeg_alien.mpg",
+ alien_sol },
{ NULL, NULL }
};
return ET_main ("mpeg", ps);
Added: Extractor/src/plugins/testdata/mpeg_alien.mpg
===================================================================
(Binary files differ)
Property changes on: Extractor/src/plugins/testdata/mpeg_alien.mpg
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r23134 - in Extractor/src/plugins: . testdata,
gnunet <=