From: <en...@ke...> - 2009-10-24 19:17:26
|
Module: gst-plugins-bad Branch: master Commit: f058bd79bd3790f92aa7da2e57c2f9fa8fce2f61 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=f058bd79bd3790f92aa7da2e57c2f9fa8fce2f61 Author: Teemu Katajisto <ext...@no...> Date: Mon Oct 19 15:54:29 2009 +0300 camerabin: fix for gstreamer core unit test framework update Set camerabin state to NULL in the each test case end. --- tests/check/elements/camerabin.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/tests/check/elements/camerabin.c b/tests/check/elements/camerabin.c index f1df1bb..4626192 100644 --- a/tests/check/elements/camerabin.c +++ b/tests/check/elements/camerabin.c @@ -415,6 +415,7 @@ GST_START_TEST (test_single_image_capture) g_signal_emit_by_name (camera, "capture-start", NULL); g_main_loop_run (main_loop); + gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); } GST_END_TEST; @@ -433,6 +434,7 @@ GST_START_TEST (test_video_recording) /* Record for one seconds */ g_usleep (G_USEC_PER_SEC); g_signal_emit_by_name (camera, "capture-stop", NULL); + gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); } GST_END_TEST; @@ -452,6 +454,7 @@ GST_START_TEST (test_image_video_cycle) g_signal_emit_by_name (camera, "capture-start", NULL); g_main_loop_run (main_loop); + gst_element_set_state (GST_ELEMENT (camera), GST_STATE_NULL); } GST_END_TEST; |