projects
/
platform
/
upstream
/
gst-editing-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
694e391
)
python: Implement TimelineElement.__repr__
author
Thibault Saunier
<tsaunier@igalia.com>
Mon, 11 Feb 2019 23:30:31 +0000
(20:30 -0300)
committer
Thibault Saunier
<tsaunier@gnome.org>
Fri, 15 Mar 2019 23:51:55 +0000
(23:51 +0000)
bindings/python/gi/overrides/GES.py
patch
|
blob
|
history
diff --git
a/bindings/python/gi/overrides/GES.py
b/bindings/python/gi/overrides/GES.py
index
08aef27
..
be2d9bf
100644
(file)
--- a/
bindings/python/gi/overrides/GES.py
+++ b/
bindings/python/gi/overrides/GES.py
@@
-61,6
+61,14
@@
__all__.append('TrackElement')
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):
res, child, unused_pspec = self.lookup_child(prop_name)
if not res: