mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
overrides: implement Gst.Structure.__getitem__
This commit is contained in:
parent
02ca5d3ad2
commit
33d57f045a
1 changed files with 6 additions and 0 deletions
|
@ -172,6 +172,12 @@ class Pipeline(Gst.Pipeline):
|
|||
Pipeline = override(Pipeline)
|
||||
__all__.append('Pipeline')
|
||||
|
||||
class Structure(Gst.Structure):
|
||||
def __getitem__(self, key):
|
||||
return self.get_value(key)
|
||||
Structure = override(Structure)
|
||||
__all__.append('Structure')
|
||||
|
||||
ElementFactory = override(ElementFactory)
|
||||
__all__.append('ElementFactory')
|
||||
|
||||
|
|
Loading…
Reference in a new issue