[farsight2/master] tests: Unlock src before setting it to playing
Olivier Crête
olivier.crete at collabora.co.uk
Thu Sep 3 14:56:53 PDT 2009
---
tests/check/transmitter/generic.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/check/transmitter/generic.c b/tests/check/transmitter/generic.c
index 920efed..24c87d5 100644
--- a/tests/check/transmitter/generic.c
+++ b/tests/check/transmitter/generic.c
@@ -83,10 +83,11 @@ setup_fakesrc (FsTransmitter *trans, GstElement *pipeline, guint component_id)
"Could not link the fakesrc to %s", padname);
g_free (padname);
+ gst_element_set_locked_state (src, FALSE);
+
ts_fail_if (gst_element_set_state (src, GST_STATE_PLAYING) ==
GST_STATE_CHANGE_FAILURE, "Could not set the fakesrc to playing");
- gst_element_set_locked_state (src, FALSE);
gst_element_sync_state_with_parent (src);
gst_object_unref (trans_sink);
--
1.5.6.5
More information about the farsight-commits
mailing list