mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
python: Implement TimelineElement.__repr__
This commit is contained in:
parent
694e39186b
commit
fe1595aef1
1 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,14 @@ __all__.append('TrackElement')
|
||||||
|
|
||||||
|
|
||||||
class TimelineElement(GES.TimelineElement):
|
class TimelineElement(GES.TimelineElement):
|
||||||
|
def __repr__(self):
|
||||||
|
return "%s [%s (%s) %s]" % (
|
||||||
|
self.props.name,
|
||||||
|
Gst.TIME_ARGS(self.props.start),
|
||||||
|
Gst.TIME_ARGS(self.props.in_point),
|
||||||
|
Gst.TIME_ARGS(self.props.duration),
|
||||||
|
)
|
||||||
|
|
||||||
def set_child_property(self, prop_name, prop_value):
|
def set_child_property(self, prop_name, prop_value):
|
||||||
res, child, unused_pspec = self.lookup_child(prop_name)
|
res, child, unused_pspec = self.lookup_child(prop_name)
|
||||||
if not res:
|
if not res:
|
||||||
|
|
Loading…
Reference in a new issue