From 41ad7a209bbc6042ca8252ce1c5f37e040a8644d Mon Sep 17 00:00:00 2001 From: Richard Boulton Date: Thu, 21 Sep 2000 01:42:19 +0000 Subject: [PATCH] IDCT works, and ieeetest not complains nicely if attempt to run a test with an unsupported DCT type. Original commit message from CVS: IDCT works, and ieeetest not complains nicely if attempt to run a test with an unsupported DCT type. --- libs/idct/ieeetest.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/idct/ieeetest.c b/libs/idct/ieeetest.c index 86e0ef0..396c25e 100644 --- a/libs/idct/ieeetest.c +++ b/libs/idct/ieeetest.c @@ -82,6 +82,11 @@ main(int argc, char **argv) gst_library_load("gstidct"); idct = gst_idct_new(method); + if (idct == 0) { + printf("method not available\n\n\n"); + + return 0; + } dct_init(); -- 2.7.4