[farsight2/master] tests: Sync src state with parent to try to defeat race
Olivier Crête
olivier.crete at collabora.co.uk
Sat Jul 25 15:30:16 PDT 2009
The race is that the source can be state locked while the main pipeline is stopped.
This will caues an abort() when the pipeline in unreferenced.
---
tests/check/transmitter/generic.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/tests/check/transmitter/generic.c b/tests/check/transmitter/generic.c
index effafe5..445ac29 100644
--- a/tests/check/transmitter/generic.c
+++ b/tests/check/transmitter/generic.c
@@ -87,6 +87,7 @@ setup_fakesrc (FsTransmitter *trans, GstElement *pipeline, guint component_id)
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