From 5b30271cd36fa3df6f7f939646e4b64ed65e76b7 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 5 Apr 2006 17:05:43 +0000 Subject: [PATCH] testsuite/test_message.py: GstBus is flushing in NULL, so we need to set the pipeline to READY in order to receive th... Original commit message from CVS: * testsuite/test_message.py: GstBus is flushing in NULL, so we need to set the pipeline to READY in order to receive the messages in the bus watch. --- ChangeLog | 6 ++++++ common | 2 +- testsuite/test_message.py | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ea4c777468..39863cf972 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-05 Edward Hervey + + * testsuite/test_message.py: + GstBus is flushing in NULL, so we need to set the pipeline to READY in + order to receive the messages in the bus watch. + 2006-04-05 Andy Wingo * configure.ac (PYGST_MICRO_VERSION): Doc fix. diff --git a/common b/common index cbedff4d5f..623fe1c2cc 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit cbedff4d5f090d43fdeaa189748a6651f2c6a07f +Subproject commit 623fe1c2cce45bc30d5823c05716349874ae994e diff --git a/testsuite/test_message.py b/testsuite/test_message.py index 3879b1be8d..505e9c14c2 100644 --- a/testsuite/test_message.py +++ b/testsuite/test_message.py @@ -46,9 +46,12 @@ class NewTest(TestCase): struc = gst.Structure("foo") msg = gst.message_new_application(bin, struc) + # the bus is flushing in NULL, so we need to set the pipeline to READY + bin.set_state(gst.STATE_READY) bus.post(msg) self.loop.run() bus.remove_signal_watch() + bin.set_state(gst.STATE_NULL) self.failUnless(self.got_message == True) self.gccollect()