Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
GStreamer
gst-editing-services
Commits
a3a4fb1a
Commit
a3a4fb1a
authored
Jul 12, 2020
by
Thibault Saunier
🌵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ges:validate: Allow setting keyframes using the clips directly
Part-of: <
!204
>
parent
c834ce5b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
ges/ges-structured-interface.c
ges/ges-structured-interface.c
+13
-1
ges/ges-validate.c
ges/ges-validate.c
+14
-2
No files found.
ges/ges-structured-interface.c
View file @
a3a4fb1a
...
...
@@ -171,7 +171,19 @@ _ges_add_remove_keyframe_from_struct (GESTimeline * timeline,
GET_AND_CHECK
(
"timestamp"
,
GST_TYPE_CLOCK_TIME
,
&
timestamp
,
done
);
element
=
GES_TRACK_ELEMENT
(
ges_timeline_get_element
(
timeline
,
element_name
));
(
GESTrackElement
*
)
ges_timeline_get_element
(
timeline
,
element_name
);
if
(
GES_IS_CLIP
(
element
))
{
GList
*
tmp
;
for
(
tmp
=
GES_CONTAINER_CHILDREN
(
element
);
tmp
;
tmp
=
tmp
->
next
)
{
if
(
ges_timeline_element_lookup_child
(
tmp
->
data
,
property_name
,
NULL
,
NULL
))
{
gst_object_replace
((
GstObject
**
)
&
element
,
tmp
->
data
);
break
;
}
}
}
if
(
!
GES_IS_TRACK_ELEMENT
(
element
))
{
*
error
=
...
...
ges/ges-validate.c
View file @
a3a4fb1a
...
...
@@ -895,9 +895,21 @@ GES_START_VALIDATE_ACTION (_set_control_source)
TRY_GET
(
"interpolation-mode"
,
G_TYPE_STRING
,
&
interpolation_mode
,
NULL
);
element
=
GES_TRACK_ELEMENT
(
ges_timeline_get_element
(
timeline
,
element_name
));
(
GESTrackElement
*
)
(
ges_timeline_get_element
(
timeline
,
element_name
));
if
(
GES_IS_CLIP
(
element
))
{
GList
*
tmp
;
for
(
tmp
=
GES_CONTAINER_CHILDREN
(
element
);
tmp
;
tmp
=
tmp
->
next
)
{
if
(
ges_timeline_element_lookup_child
(
tmp
->
data
,
property_name
,
NULL
,
NULL
))
{
gst_object_replace
((
GstObject
**
)
&
element
,
tmp
->
data
);
break
;
}
}
}
REPORT_UNLESS
(
GES_IS_TRACK_ELEMENT
(
element
),
beach
,
"Could not find element %s"
,
element_name
);
"Could not find track element element %s (got %"
GST_PTR_FORMAT
")"
,
element_name
,
element
);
if
(
!
binding_type
)
binding_type
=
g_strdup
(
"direct"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment