[farsight2/master] Stop the transmitter in the right order in the rawudp test

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


---
 tests/check/transmitter/rawudp.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/tests/check/transmitter/rawudp.c b/tests/check/transmitter/rawudp.c
index 93a3660..ab511f6 100644
--- a/tests/check/transmitter/rawudp.c
+++ b/tests/check/transmitter/rawudp.c
@@ -272,14 +272,16 @@ run_rawudp_transmitter_test (gint n_parameters, GParameter *params,
 
   g_main_run (loop);
 
-  g_object_unref (st);
-
  skip:
 
-  g_object_unref (trans);
-
   gst_element_set_state (pipeline, GST_STATE_NULL);
 
+  gst_element_get_state (pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
+
+  g_object_unref (st);
+
+  g_object_unref (trans);
+
   gst_object_unref (pipeline);
 
   g_main_loop_unref (loop);
-- 
1.5.6.5




More information about the farsight-commits mailing list