mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
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
This commit is contained in:
parent
cd83c0c8e5
commit
e8b3eaf0f2
1 changed files with 10 additions and 0 deletions
|
@ -303,7 +303,17 @@ check_timeline (GESTimeline * timeline)
|
||||||
ges_pipeline_set_render_settings (pipeline, render_uri, profile);
|
ges_pipeline_set_render_settings (pipeline, render_uri, profile);
|
||||||
ges_pipeline_set_mode (pipeline, TIMELINE_MODE_RENDER);
|
ges_pipeline_set_mode (pipeline, TIMELINE_MODE_RENDER);
|
||||||
|
|
||||||
|
|
||||||
gst_object_unref (profile);
|
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));
|
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
|
||||||
|
|
Loading…
Reference in a new issue