libextractor

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

commit 51ad50c54928c66545b9995e70db5fee3e34fe31
parent 759cf0c0d64f776ad8acfaea8cd9f8e8189341f9
Author: LRN <lrn1986@gmail.com>
Date:   Fri, 14 Sep 2012 11:50:13 +0000

More verbosity to GStreamer extractor test

Diffstat:
Msrc/plugins/gstreamer_extractor.c | 4+++-
Msrc/plugins/test_gstreamer.c | 18+++++++++++++++---
2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/plugins/gstreamer_extractor.c b/src/plugins/gstreamer_extractor.c @@ -45,7 +45,7 @@ GST_DEBUG_CATEGORY_STATIC (gstreamer_extractor); * and kill it. * In microseconds. */ -#define DATA_TIMEOUT 80000 /* 80ms */ +#define DATA_TIMEOUT 80000LL /* 80ms */ /** * Struct mapping GSTREAMER tags to LE tags. @@ -1772,6 +1772,8 @@ _data_timeout (struct PrivStruct *ps) gint64 now = g_get_monotonic_time (); if (now - ps->last_data_request_time > DATA_TIMEOUT) { + GST_ERROR ("GstDiscoverer I/O timed out (last heard from discoverer on %lld, now is %lld, difference is %lld > %lld", + ps->last_data_request_time, now, now - ps->last_data_request_time, DATA_TIMEOUT); ps->timeout_id = 0; g_main_loop_quit (ps->loop); return FALSE; diff --git a/src/plugins/test_gstreamer.c b/src/plugins/test_gstreamer.c @@ -135,6 +135,7 @@ main (int argc, char *argv[]) pre_test = discoverer_main (dc, "testdata/gstreamer_30_and_33.asf"); if (GST_DISCOVERER_MISSING_PLUGINS != pre_test) { + int test_result; struct SolutionData thirty_and_thirtythree_sol[] = { { @@ -297,12 +298,16 @@ main (int argc, char *argv[]) { "testdata/30_and_33.asf", thirty_and_thirtythree_sol }, { NULL, NULL } }; - result += (0 == ET_main ("gstreamer", ps) ? 0 : 1); + g_print ("Running asf test on GStreamer:\n"); + test_result = (0 == ET_main ("gstreamer", ps) ? 0 : 1); + g_print ("asf GStreamer test result: %s\n", test_result == 0 ? "OK" : "FAILED"); + result += test_result; } pre_test = discoverer_main (dc, "testdata/gstreamer_barsandtone.flv"); if (pre_test != GST_DISCOVERER_MISSING_PLUGINS) { + int test_result; struct SolutionData barsandtone_sol[] = { { @@ -492,12 +497,16 @@ main (int argc, char *argv[]) { "testdata/barsandtone.flv", barsandtone_sol }, { NULL, NULL } }; - result += (0 == ET_main ("gstreamer", ps) ? 0 : 1); + g_print ("Running flv test on GStreamer:\n"); + test_result = (0 == ET_main ("gstreamer", ps) ? 0 : 1); + g_print ("flv GStreamer test result: %s\n", test_result == 0 ? "OK" : "FAILED"); + result += test_result; } pre_test = discoverer_main (dc, "testdata/gstreamer_sample_sorenson.mov"); if (pre_test != GST_DISCOVERER_MISSING_PLUGINS) { + int test_result; struct SolutionData sample_sorenson_sol[] = { { @@ -692,7 +701,10 @@ main (int argc, char *argv[]) { "testdata/gstreamer_sample_sorenson.mov", sample_sorenson_sol }, { NULL, NULL } }; - result += (0 == ET_main ("gstreamer", ps) ? 0 : 1); + g_print ("Running mov test on GStreamer:\n"); + test_result = (0 == ET_main ("gstreamer", ps) ? 0 : 1); + g_print ("mov GStreamer test result: %s\n", test_result == 0 ? "OK" : "FAILED"); + result += test_result; } pre_test = discoverer_main (dc, "testdata/matroska_flame.mkv");