From e8b3eaf0f2c0caeff638256fa63921c18c812c59 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 23 Jul 2013 19:20:34 -0400 Subject: [PATCH] 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 --- tests/check/ges/integration.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/check/ges/integration.c b/tests/check/ges/integration.c index 1aeaa06002..8a40e4f02c 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));