[farsight2/master] Set the sink to playing while adding it

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


---
 tests/commandline/simple-call.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/commandline/simple-call.c b/tests/commandline/simple-call.c
index 72d73a3..a6fcbcf 100644
--- a/tests/commandline/simple-call.c
+++ b/tests/commandline/simple-call.c
@@ -77,6 +77,9 @@ src_pad_added_cb (FsStream *stream, GstPad *pad, FsCodec *codec,
 
   g_assert (GST_PAD_LINK_SUCCESSFUL (gst_pad_link (pad, pad2)));
 
+  g_assert (gst_element_set_state (sink, GST_STATE_PLAYING) !=
+      GST_STATE_CHANGE_FAILURE);
+
   gst_object_unref (pad2);
 }
 
-- 
1.5.6.5




More information about the farsight-commits mailing list