Beispiel #1
0
 def tearDown(self):
     self.pipeline.setState(STATE_NULL)
     self.pipeline.release()
     self.monitor.disconnectFromObj(self.pipeline)
     del self.pipeline
     del self.monitor
     TestCase.tearDown(self)
Beispiel #2
0
    def tearDown(self):
        gst.info("tearDown")
        self.assertTrue(self.pipeline.__gstrefcount__ >= 1
                        and self.pipeline.__gstrefcount__ <= 2)
        self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2
                          or 3)
        self.assertEquals(self.src.__gstrefcount__, 2)
        self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)
        self.assertEquals(self.sink.__gstrefcount__, 2)
        self.assertEquals(sys.getrefcount(self.sink), 3)
        gst.debug('deleting pipeline')
        del self.pipeline
        self.gccollect()

        self.assertEquals(self.src.__gstrefcount__, 1)  # parent gone
        self.assertEquals(self.sink.__gstrefcount__, 1)  # parent gone
        self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)
        self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2
                          or 3)
        gst.debug('deleting src')
        del self.src
        self.gccollect()
        gst.debug('deleting sink')
        del self.sink
        self.gccollect()

        TestCase.tearDown(self)
Beispiel #3
0
 def tearDown(self):
     # FIXME: wait for state change thread to settle down
     while self.bin.__gstrefcount__ > 1:
         time.sleep(0.1)
     self.assertEquals(self.bin.__gstrefcount__, 1)
     del self.bin
     TestCase.tearDown(self)
Beispiel #4
0
 def tearDown(self):
     self.pipeline.setState(STATE_NULL)
     self.pipeline.release()
     self.monitor.disconnectFromObj(self.pipeline)
     del self.pipeline
     del self.monitor
     TestCase.tearDown(self)
Beispiel #5
0
    def tearDown(self):
        # Refcount must be either 1 or 2, to allow for a possibly still running
        # state-recalculation thread
        self.assertTrue(self.pipeline.__gstrefcount__ >= 1
                        and self.pipeline.__gstrefcount__ <= 2)

        self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2
                          or 3)
        self.assertEquals(self.fakesrc.__gstrefcount__, 2)
        self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2
                          or 3)
        gst.debug('deleting pipeline')
        del self.pipeline
        self.gccollect()

        self.assertEquals(self.fakesrc.__gstrefcount__, 1)  # parent gone
        self.assertEquals(self.fakesink.__gstrefcount__, 1)  # parent gone
        self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2
                          or 3)
        self.assertEquals(sys.getrefcount(self.fakesink), pygobject_2_13 and 2
                          or 3)
        gst.debug('deleting fakesrc')
        del self.fakesrc
        self.gccollect()
        gst.debug('deleting fakesink')
        del self.fakesink
        self.gccollect()

        TestCase.tearDown(self)
Beispiel #6
0
 def tearDown(self):
     # FIXME: wait for state change thread to settle down
     while self.bin.__gstrefcount__ > 1:
         time.sleep(0.1)
     self.assertEquals(self.bin.__gstrefcount__, 1)
     del self.bin
     TestCase.tearDown(self)
Beispiel #7
0
 def tearDown(self):
     self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)
     self.assertEquals(self.src.__gstrefcount__, 1)
     del self.src
     self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2 or 3)
     self.assertEquals(self.sink.__gstrefcount__, 1)
     del self.sink
     TestCase.tearDown(self)
Beispiel #8
0
 def tearDown(self):
     self.discoverer.disconnect_by_function(self.discoveryErrorCb)
     self.discoverer.disconnect_by_function(self.discoveryDoneCb)
     self.discoverer = None
     self.factories = None
     self.error = None
     self.src = None
     TestCase.tearDown(self)
Beispiel #9
0
 def tearDown(self):
     self.discoverer.disconnect_by_function(self.discoveryErrorCb)
     self.discoverer.disconnect_by_function(self.discoveryDoneCb)
     self.discoverer = None
     self.factories = None
     self.error = None
     self.src = None
     TestCase.tearDown(self)
Beispiel #10
0
 def tearDown(self):
     self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)
     self.assertEquals(self.src.__gstrefcount__, 1)
     del self.src
     self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2
                       or 3)
     self.assertEquals(self.sink.__gstrefcount__, 1)
     del self.sink
     TestCase.tearDown(self)
Beispiel #11
0
 def tearDown(self):
     self.pipeline.set_state(gst.STATE_NULL)
     self.sink.disconnect(self.sigid)
     if os.path.exists(self.filename):
         os.remove(self.filename)
     del self.bus
     del self.pipeline
     del self.source
     del self.sink
     del self.handoffs
     TestCase.tearDown(self)
Beispiel #12
0
 def tearDown(self):
     self.pipeline.set_state(gst.STATE_NULL)
     self.sink.disconnect(self.sigid)
     if os.path.exists(self.filename):
         os.remove(self.filename)
     del self.bus
     del self.pipeline
     del self.source
     del self.sink
     del self.handoffs
     TestCase.tearDown(self)
Beispiel #13
0
    def tearDown(self):
        gst.debug('setting pipeline to NULL')
        self.pipeline.set_state(gst.STATE_NULL)
        gst.debug('set pipeline to NULL')
        # FIXME: wait for state change thread to die
        while self.pipeline.__gstrefcount__ > 1:
            gst.debug('waiting for self.pipeline G rc to drop to 1')
            time.sleep(0.1)
        self.assertEquals(self.pipeline.__gstrefcount__, 1)

        del self.sink
        del self.pipeline
        TestCase.tearDown(self)
Beispiel #14
0
    def tearDown(self):
        gst.debug('setting pipeline to NULL')
        self.pipeline.set_state(gst.STATE_NULL)
        gst.debug('set pipeline to NULL')
        # FIXME: wait for state change thread to die
        while self.pipeline.__gstrefcount__ > 1:
            gst.debug('waiting for self.pipeline G rc to drop to 1')
            time.sleep(0.1)
        self.assertEquals(self.pipeline.__gstrefcount__, 1)

        del self.sink
        del self.pipeline
        TestCase.tearDown(self)
Beispiel #15
0
    def tearDown(self):
        # Refcount must be either 1 or 2, to allow for a possibly still running
        # state-recalculation thread
        self.assertTrue (self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2)

        self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2 or 3)
        self.assertEquals(self.fakesrc.__gstrefcount__, 2)
        self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2 or 3)
        gst.debug('deleting pipeline')
        del self.pipeline
        self.gccollect()

        self.assertEquals(self.fakesrc.__gstrefcount__, 1) # parent gone
        self.assertEquals(self.fakesink.__gstrefcount__, 1) # parent gone
        self.assertEquals(sys.getrefcount(self.fakesrc), pygobject_2_13 and 2 or 3)
        self.assertEquals(sys.getrefcount(self.fakesink), pygobject_2_13 and 2 or 3)
        gst.debug('deleting fakesrc')
        del self.fakesrc
        self.gccollect()
        gst.debug('deleting fakesink')
        del self.fakesink
        self.gccollect()

        TestCase.tearDown(self)
Beispiel #16
0
    def tearDown(self):
        gst.info("tearDown")
        self.assertTrue (self.pipeline.__gstrefcount__ >= 1 and self.pipeline.__gstrefcount__ <= 2)
        self.assertEquals(sys.getrefcount(self.pipeline), pygobject_2_13 and 2 or 3)
        self.assertEquals(self.src.__gstrefcount__, 2)
        self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)
        self.assertEquals(self.sink.__gstrefcount__, 2)
        self.assertEquals(sys.getrefcount(self.sink), 3)
        gst.debug('deleting pipeline')
        del self.pipeline
        self.gccollect()

        self.assertEquals(self.src.__gstrefcount__, 1) # parent gone
        self.assertEquals(self.sink.__gstrefcount__, 1) # parent gone
        self.assertEquals(sys.getrefcount(self.src), pygobject_2_13 and 2 or 3)
        self.assertEquals(sys.getrefcount(self.sink), pygobject_2_13 and 2 or 3)
        gst.debug('deleting src')
        del self.src
        self.gccollect()
        gst.debug('deleting sink')
        del self.sink
        self.gccollect()

        TestCase.tearDown(self)
Beispiel #17
0
 def tearDown(self):
     self.monitor = None
     self.track_object.release()
     self.track_oject = None
     self.factory = None
     TestCase.tearDown(self)
Beispiel #18
0
 def tearDown(self):
     del self.mixer
     TestCase.tearDown(self)
Beispiel #19
0
 def tearDown(self):
     self.adapter = None
     TestCase.tearDown(self)
Beispiel #20
0
 def tearDown(self):
     self.factory = None
     self.stream = None
     self.track1 = None
     self.track2 = None
     TestCase.tearDown(self)
Beispiel #21
0
 def tearDown(self):
     del self.bin
     TestCase.tearDown(self)
Beispiel #22
0
 def tearDown(self):
     del self.pipeline
     del self.srcpad
     TestCase.tearDown(self)
Beispiel #23
0
 def tearDown(self):
     del self.pipeline
     del self.element
     TestCase.tearDown(self)
Beispiel #24
0
 def tearDown(self):
     self.discoverer = None
     TestCase.tearDown(self)
Beispiel #25
0
 def tearDown(self):
     self.factory = None
     TestCase.tearDown(self)
Beispiel #26
0
 def tearDown(self):
     self.stream = None
     self.factory = None
     self.monitor = None
     TestCase.tearDown(self)
Beispiel #27
0
 def tearDown(self):
     del self.factory
     TestCase.tearDown(self)
 def tearDown(self):
     del self.factory
     TestCase.tearDown(self)
Beispiel #29
0
 def tearDown(self):
     self.adapter = None
     TestCase.tearDown(self)
Beispiel #30
0
 def tearDown(self):
     self.factory = None
     TestCase.tearDown(self)
Beispiel #31
0
 def tearDown(self):
     del self.pipeline
     del self.element
     TestCase.tearDown(self)
Beispiel #32
0
 def tearDown(self):
     self.stream = None
     self.factory = None
     self.monitor = None
     TestCase.tearDown(self)
Beispiel #33
0
 def tearDown(self):
     del self.bin
     TestCase.tearDown(self)
Beispiel #34
0
 def tearDown(self):
     self.audiosettings = None
     self.videosettings = None
     TestCase.tearDown(self)
Beispiel #35
0
 def tearDown(self):
     self.discoverer = None
     TestCase.tearDown(self)
Beispiel #36
0
 def tearDown(self):
     del self.mixer
     TestCase.tearDown(self)
Beispiel #37
0
 def tearDown(self):
     del self.pipeline
     del self.srcpad
     TestCase.tearDown(self)