mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 09:00:54 +00:00
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:
parent
ec51f6bfd7
commit
64db9c4771
1 changed files with 3 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue