diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-10-15 10:28:39 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-10-15 10:28:39 +0100 |
commit | 4b84d7552f29888a9deadc329cc7b88d7226d13f (patch) | |
tree | bc848aaa07f328c90ccee085948bcc6f2758fedf /tests | |
parent | ecca471d029a39368ee169ae535383035e5b9842 (diff) |
check: Don't fail the basetime test when no audiosrc is available
On OS/X the DEFAULT_AUDIOSRC is not going to be available, because
it isn't in gst-plugins-base. Just defer the test, instead of
failing it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/check/pipelines/basetime.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/check/pipelines/basetime.c b/tests/check/pipelines/basetime.c index 6fc1a60ee..00072ef01 100644 --- a/tests/check/pipelines/basetime.c +++ b/tests/check/pipelines/basetime.c @@ -67,9 +67,17 @@ GST_START_TEST (test_basetime_calculation) fail_if (p1 == NULL); /* Create a sub-bin that is activated only in "certain situations" */ - bin = gst_bin_new ("audiobin"); asrc = gst_element_factory_make (DEFAULT_AUDIOSRC, NULL); + if (asrc == NULL) { + GST_WARNING ("Cannot run test. test audio source %s not available", + DEFAULT_AUDIOSRC); + gst_element_set_state (p1, GST_STATE_NULL); + gst_object_unref (p1); + return; + } asink = gst_element_factory_make ("fakesink", NULL); + + bin = gst_bin_new ("audiobin"); gst_bin_add_many (GST_BIN (bin), asrc, asink, NULL); gst_element_link (asrc, asink); |