mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
python: Avoid warning about using deprecated methods
Fixes https://gitlab.freedesktop.org/gstreamer/gst-editing-services/issues/69
This commit is contained in:
parent
d87578c843
commit
4ded3b8838
2 changed files with 10 additions and 1 deletions
|
@ -70,7 +70,7 @@ class TimelineElement(GES.TimelineElement):
|
||||||
)
|
)
|
||||||
|
|
||||||
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 = GES.TimelineElement.lookup_child(self, prop_name)
|
||||||
if not res:
|
if not res:
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|
|
@ -935,3 +935,12 @@ class TestPriorities(common.GESSimpleTimelineTest):
|
||||||
clip.props.start = 101
|
clip.props.start = 101
|
||||||
self.timeline.commit()
|
self.timeline.commit()
|
||||||
self.assertGreater(clip.props.priority, clip1.props.priority)
|
self.assertGreater(clip.props.priority, clip1.props.priority)
|
||||||
|
|
||||||
|
|
||||||
|
class TestTimelineElement(common.GESSimpleTimelineTest):
|
||||||
|
|
||||||
|
def test_set_child_property(self):
|
||||||
|
clip = self.add_clip(0, 0, 100)
|
||||||
|
source = clip.find_track_element(None, GES.VideoSource)
|
||||||
|
self.assertTrue(source.set_child_property("height", 5))
|
||||||
|
self.assertEqual(clip.get_child_property("height"), (True, 5))
|
||||||
|
|
Loading…
Reference in a new issue