overrides: implement Gst.Structure.__getitem__

This commit is contained in:
Alessandro Decina 2012-11-22 07:11:45 +01:00
parent 02ca5d3ad2
commit 33d57f045a

View file

@ -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')