diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-07-14 15:31:13 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-07-14 15:31:13 +0100 |
commit | de02af8d4fdc8bf08888bdded1ee9e1d83301b45 (patch) | |
tree | 129e5bd985925b6774a09d8fde53f6f39bb0851b | |
parent | 7753d463501a656f29c2ef016eac1c66336c7cc1 (diff) |
adder: One more attempt to fix the adder test
Give up and discard and recreate the alsasrc after checking it can
be opened, due to some strange crash inside alsa when we don't.
-rw-r--r-- | tests/check/elements/adder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/check/elements/adder.c b/tests/check/elements/adder.c index 53ff3496a..61cfbe3f3 100644 --- a/tests/check/elements/adder.c +++ b/tests/check/elements/adder.c @@ -443,11 +443,11 @@ GST_START_TEST (test_live_seeking) /* Test that the audio source can get to paused, else skip */ res = gst_element_set_state (src1, GST_STATE_PAUSED); (void) gst_element_set_state (src1, GST_STATE_NULL); - (void) gst_element_get_state (src1, NULL, NULL, GST_CLOCK_TIME_NONE); - if (res == GST_STATE_CHANGE_FAILURE) { - gst_object_unref (src1); + gst_object_unref (src1); + + if (res == GST_STATE_CHANGE_FAILURE) goto cleanup; - } + src1 = gst_element_factory_make ("alsasrc", "src1"); /* live sources ignore seeks, force eos after 2 sec (4 buffers half second * each) - don't use autoaudiosrc, as then we can't set anything here */ |