overrides: set default value for name arg in ElementFactory.make(factory, name)

So you can use Gst.ElementFactory.make('fakesrc') instead of
Gst.ElementFactory.make('fakesrc', None)
This commit is contained in:
Alessandro Decina 2012-10-15 09:15:21 +02:00
parent ec51f6bfd7
commit 64db9c4771

View file

@ -117,6 +117,9 @@ class ElementFactory(Gst.ElementFactory):
def get_klass(self):
return self.get_metadata("klass")
@classmethod
def make(cls, factory_name, instance_name=None):
return Gst.ElementFactory.make(factory_name, instance_name)
class Pad(Gst.Pad):
def link(self, pad):