All pastes #767440 Raw Edit

Unnamed

public python v1 · immutable
·published 2007-11-09 19:26 UTC
rendered paste body
class PriorityDemo(GnlDemo):    __name__ = "Priority Demo"    __usage__ = '''%s''' % sys.argv[0]        def gnl_magic(self, comp, args):        self.testbin = PriorityTestBin()        testop = gst.element_factory_make("gnloperation")        testop.add(self.testbin)        testop.set_property("start", 0)        testop.set_property("duration", 5 * gst.SECOND)        comp.add(testop)        i = 0        for name in ["source1", "source2", "source3"]:            source = gst.element_factory_make("gnlsource", name)            source.set_property("start", 0)            source.set_property("duration", 5 * gst.SECOND)            source.set_property("priority", i)            i += 1            comp.add(source)if __name__ == '__main__':    d = PriorityDemo()    d.run()    d.testbin.dump_pad_info()