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.
This commit is contained in:
Edward Hervey 2006-04-05 17:05:43 +00:00
parent b3fb726a67
commit 5b30271cd3
3 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-04-05 Edward Hervey <edward@fluendo.com>
* 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 <wingo@pobox.com>
* configure.ac (PYGST_MICRO_VERSION): Doc fix.

2
common

@ -1 +1 @@
Subproject commit cbedff4d5f090d43fdeaa189748a6651f2c6a07f
Subproject commit 623fe1c2cce45bc30d5823c05716349874ae994e

View file

@ -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()