1diff -Nurp gst-python-0.10.22.orig/testsuite/test_bin.py gst-python-0.10.22/testsuite/test_bin.py
2--- gst-python-0.10.22.orig/testsuite/test_bin.py 2014-10-29 18:58:00.921827721 +0100
3+++ gst-python-0.10.22/testsuite/test_bin.py 2014-10-29 19:00:32.019353092 +0100
4@@ -131,52 +131,6 @@ class BinAddRemove(TestCase):
5 self.assertRaises(gst.AddError, self.bin.add, src, sink)
6 self.bin.remove(src, sink)
7 self.assertRaises(gst.RemoveError, self.bin.remove, src, sink)
8-
9-class Preroll(TestCase):
10- def setUp(self):
11- TestCase.setUp(self)
12- self.bin = gst.Bin('bin')
13-
14- def tearDown(self):
15- # FIXME: wait for state change thread to settle down
16- while self.bin.__gstrefcount__ > 1:
17- time.sleep(0.1)
18- self.assertEquals(self.bin.__gstrefcount__, 1)
19- del self.bin
20- TestCase.tearDown(self)
21-
22- def testFake(self):
23- src = gst.element_factory_make('fakesrc')
24- sink = gst.element_factory_make('fakesink')
25- self.bin.add(src)
26-
27- # bin will go to paused, src pad task will start and error out
28- self.bin.set_state(gst.STATE_PAUSED)
29- ret = self.bin.get_state()
30- self.assertEquals(ret[0], gst.STATE_CHANGE_SUCCESS)
31- self.assertEquals(ret[1], gst.STATE_PAUSED)
32- self.assertEquals(ret[2], gst.STATE_VOID_PENDING)
33-
34- # adding the sink will cause the bin to go in preroll mode
35- gst.debug('adding sink and setting to PAUSED, should cause preroll')
36- self.bin.add(sink)
37- sink.set_state(gst.STATE_PAUSED)
38- ret = self.bin.get_state(timeout=0)
39- self.assertEquals(ret[0], gst.STATE_CHANGE_ASYNC)
40- self.assertEquals(ret[1], gst.STATE_PAUSED)
41- self.assertEquals(ret[2], gst.STATE_PAUSED)
42-
43- # to actually complete preroll, we need to link and re-enable fakesrc
44- src.set_state(gst.STATE_READY)
45- src.link(sink)
46- src.set_state(gst.STATE_PAUSED)
47- ret = self.bin.get_state()
48- self.assertEquals(ret[0], gst.STATE_CHANGE_SUCCESS)
49- self.assertEquals(ret[1], gst.STATE_PAUSED)
50- self.assertEquals(ret[2], gst.STATE_VOID_PENDING)
51-
52- self.bin.set_state(gst.STATE_NULL)
53- self.bin.get_state()
54
55 class ConstructorTest(TestCase):
56 def testGood(self):