summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2012-04-09 12:55:34 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2012-04-09 12:55:34 +0100
commitbe9baf1a0ba04d338aaa5e64eaddbc3eb32f0b59 (patch)
treef7959422a5b889cde58243f1695c1ffdf95761f4
parentfa5edd2680d1e3e27eaf75867800167b973ad896 (diff)
downloadgstreamer-plugins-good-be9baf1a0ba04d338aaa5e64eaddbc3eb32f0b59.tar.gz
tests: disable simple smokeenc/dec launch lines test
Disable test for smoke elements, which aren't ported yet (and maybe shouldn't be ported).
-rw-r--r--tests/check/pipelines/simple-launch-lines.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/check/pipelines/simple-launch-lines.c b/tests/check/pipelines/simple-launch-lines.c
index c1c12ed7b..326d357d8 100644
--- a/tests/check/pipelines/simple-launch-lines.c
+++ b/tests/check/pipelines/simple-launch-lines.c
@@ -241,10 +241,16 @@ GST_START_TEST (test_video_encoders_decoders)
GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
GST_MESSAGE_UNKNOWN, target_state);
- s = ENC_DEC_PIPELINE_STRING (DEFAULT_BUFCOUNT, "smokeenc", "smokedec");
- run_pipeline (setup_pipeline (s), s,
- GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
- GST_MESSAGE_UNKNOWN, target_state);
+
+ if (gst_registry_check_feature_version (gst_registry_get (), "smokeenc",
+ GST_VERSION_MAJOR, GST_VERSION_MINOR, 0) &&
+ gst_registry_check_feature_version (gst_registry_get (), "smokedec",
+ GST_VERSION_MAJOR, GST_VERSION_MINOR, 0)) {
+ s = ENC_DEC_PIPELINE_STRING (DEFAULT_BUFCOUNT, "smokeenc", "smokedec");
+ run_pipeline (setup_pipeline (s), s,
+ GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
+ GST_MESSAGE_UNKNOWN, target_state);
+ }
}
GST_END_TEST