mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
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.
This commit is contained in:
parent
ecca471d02
commit
4b84d7552f
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue