mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
state change fix
Original commit message from CVS: state change fix
This commit is contained in:
parent
eb694830cb
commit
bc97ab9faa
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-26 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* testsuite/test_bus.py:
|
||||||
|
fix race condition because of state thread
|
||||||
|
|
||||||
2005-10-26 Thomas Vander Stichele <thomas at apestaart dot org>
|
2005-10-26 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* testsuite/test_event.py:
|
* testsuite/test_event.py:
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
from common import gst, unittest, TestCase
|
from common import gst, unittest, TestCase
|
||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
|
import time
|
||||||
|
|
||||||
class BusSignalTest(TestCase):
|
class BusSignalTest(TestCase):
|
||||||
def testGoodConstructor(self):
|
def testGoodConstructor(self):
|
||||||
|
@ -68,6 +69,10 @@ class BusSignalTest(TestCase):
|
||||||
gst.info("set to NULL %s" % ret)
|
gst.info("set to NULL %s" % ret)
|
||||||
self.gccollect()
|
self.gccollect()
|
||||||
self.assertEquals(bus.__gstrefcount__, 3)
|
self.assertEquals(bus.__gstrefcount__, 3)
|
||||||
|
# FIXME: state change thread needs to die
|
||||||
|
while pipeline.__gstrefcount__ > 1:
|
||||||
|
gst.debug('waiting for pipeline refcount to drop')
|
||||||
|
time.sleep(0.1)
|
||||||
self.assertEquals(pipeline.__gstrefcount__, 1)
|
self.assertEquals(pipeline.__gstrefcount__, 1)
|
||||||
|
|
||||||
gst.info("about to remove the watch id")
|
gst.info("about to remove the watch id")
|
||||||
|
|
Loading…
Reference in a new issue