~ubuntu-branches/ubuntu/quantal/gst-plugins-bad0.10/quantal-proposed

« back to all changes in this revision

Viewing changes to tests/check/elements/imagecapturebin.c

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-07-19 14:32:43 UTC
  • mfrom: (18.4.21 sid)
  • Revision ID: james.westby@ubuntu.com-20110719143243-p7pnkh45akfp0ihk
Tags: 0.10.22-2ubuntu1
* Rebased on debian unstable, remaining changes:
  - debian/gstreamer-plugins-bad.install
    * don't include dtmf, liveadder, rtpmux, autoconvert and shm, we include 
      them in -good

Show diffs side-by-side

added added

removed removed

Lines of Context:
380
380
static Suite *
381
381
imagecapturebin_suite (void)
382
382
{
 
383
  GstElementFactory *jpegenc_factory;
 
384
 
383
385
  Suite *s = suite_create ("imagecapturebin");
384
386
  TCase *tc_chain = tcase_create ("general");
385
387
 
 
388
  jpegenc_factory = gst_element_factory_find ("jpegenc");
 
389
 
386
390
  suite_add_tcase (s, tc_chain);
387
 
  tcase_add_test (tc_chain, test_simple_capture);
388
 
  tcase_add_test (tc_chain, test_multiple_captures_different_caps);
389
 
  tcase_add_test (tc_chain, test_setting_encoder);
390
 
  tcase_add_test (tc_chain, test_setting_muxer);
 
391
  if (jpegenc_factory) {
 
392
    tcase_add_test (tc_chain, test_simple_capture);
 
393
 
 
394
    /* only adds this test if jpegenc contains the fix for its getcaps
 
395
     * The fix on good: dcbba0932dc579abd6aab4460fa1a416374eda1b */
 
396
    if (gst_plugin_feature_check_version ((GstPluginFeature *) jpegenc_factory,
 
397
            0, 10, 27))
 
398
      tcase_add_test (tc_chain, test_multiple_captures_different_caps);
 
399
    else
 
400
      GST_WARNING ("Skipped test that needs gst-plugins-good 0.10.27");
 
401
 
 
402
    tcase_add_test (tc_chain, test_setting_encoder);
 
403
    tcase_add_test (tc_chain, test_setting_muxer);
 
404
  } else
 
405
    GST_WARNING ("Skipped imagecapturebin tests because jpegenc is missing");
391
406
 
392
407
  return s;
393
408
}