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:
1577ac1
)
element: Add API safe guard against invalid position in edit()
author
Thibault Saunier
<tsaunier@igalia.com>
Tue, 24 Mar 2020 00:21:10 +0000
(21:21 -0300)
committer
Thibault Saunier
<tsaunier@igalia.com>
Wed, 25 Mar 2020 14:26:29 +0000
(11:26 -0300)
ges/ges-timeline-element.c
patch
|
blob
|
history
diff --git
a/ges/ges-timeline-element.c
b/ges/ges-timeline-element.c
index
cee9fb4
..
2a2a206
100644
(file)
--- a/
ges/ges-timeline-element.c
+++ b/
ges/ges-timeline-element.c
@@
-2483,6
+2483,7
@@
ges_timeline_element_edit (GESTimelineElement * self, GList * layers,
GESTimeline *timeline;
g_return_val_if_fail (GES_IS_TIMELINE_ELEMENT (self), FALSE);
+ g_return_val_if_fail (GST_CLOCK_TIME_IS_VALID (position), FALSE);
timeline = GES_TIMELINE_ELEMENT_TIMELINE (self);
/* FIXME: handle a NULL timeline! */