[farsight2/master] Dont crash if creating the stream transmitter fails in rawudp test

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


---
 tests/check/transmitter/rawudp.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tests/check/transmitter/rawudp.c b/tests/check/transmitter/rawudp.c
index ab511f6..51a632d 100644
--- a/tests/check/transmitter/rawudp.c
+++ b/tests/check/transmitter/rawudp.c
@@ -278,7 +278,8 @@ run_rawudp_transmitter_test (gint n_parameters, GParameter *params,
 
   gst_element_get_state (pipeline, NULL, NULL, GST_CLOCK_TIME_NONE);
 
-  g_object_unref (st);
+  if (st)
+    g_object_unref (st);
 
   g_object_unref (trans);
 
-- 
1.5.6.5




More information about the farsight-commits mailing list