summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@collabora.com>2013-07-23 19:20:34 -0400
committerThibault Saunier <thibault.saunier@collabora.com>2013-07-23 19:37:54 -0400
commite8b3eaf0f2c0caeff638256fa63921c18c812c59 (patch)
tree19b83163450b19a14fd6bed46dcb18851ae9c192
parentcd83c0c8e5da2dadda972a719f41dc88f15bb833 (diff)
tests: integration: Let the user mute the tests when needed
Add an environment variable so the user can make sur that integration tests use fakesinks instead of real sinks
-rw-r--r--tests/check/ges/integration.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/check/ges/integration.c b/tests/check/ges/integration.c
index 1aeaa06..8a40e4f 100644
--- a/tests/check/ges/integration.c
+++ b/tests/check/ges/integration.c
@@ -303,7 +303,17 @@ check_timeline (GESTimeline * timeline)
ges_pipeline_set_render_settings (pipeline, render_uri, profile);
ges_pipeline_set_mode (pipeline, TIMELINE_MODE_RENDER);
+
gst_object_unref (profile);
+ } else if (g_getenv ("GES_MUTE_TESTS")) {
+ GstElement *sink = gst_element_factory_make ("fakesink", NULL);
+
+ g_object_set (sink, "sync", TRUE, NULL);
+ ges_pipeline_preview_set_audio_sink (pipeline, sink);
+
+ sink = gst_element_factory_make ("fakesink", NULL);
+ g_object_set (sink, "sync", TRUE, NULL);
+ ges_pipeline_preview_set_video_sink (pipeline, sink);
}
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));