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