[farsight2/master] Little simplication in the test

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:20:24 PST 2008


---
 tests/check/main/generic.c       |    4 ----
 tests/check/main/rtpconference.c |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/tests/check/main/generic.c b/tests/check/main/generic.c
index 61f3312..3fe0452 100644
--- a/tests/check/main/generic.c
+++ b/tests/check/main/generic.c
@@ -131,9 +131,5 @@ setup_fakesrc (struct SimpleTestConference *dat)
       "Could not link capsfilter to sink");
 
   if (dat->started)
-  {
     gst_element_set_state (dat->pipeline, GST_STATE_PLAYING);
-    dat->started = TRUE;
-  }
-
 }
diff --git a/tests/check/main/rtpconference.c b/tests/check/main/rtpconference.c
index 5861354..3f3e0c5 100644
--- a/tests/check/main/rtpconference.c
+++ b/tests/check/main/rtpconference.c
@@ -239,7 +239,7 @@ _start_pipeline (gpointer user_data)
   fail_if (gst_element_set_state (dat->pipeline, GST_STATE_PLAYING) ==
     GST_STATE_CHANGE_FAILURE, "Could not set the pipeline to playing");
 
-    dat->started = TRUE;
+  dat->started = TRUE;
 
   return FALSE;
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list