mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
timeline-element: Set asset from the copied element to the new copy
This commit is contained in:
parent
f579a6a95c
commit
fceb80dda3
1 changed files with 4 additions and 0 deletions
|
@ -786,6 +786,7 @@ ges_timeline_element_trim (GESTimelineElement * self, GstClockTime start)
|
|||
GESTimelineElement *
|
||||
ges_timeline_element_copy (GESTimelineElement * self, gboolean deep)
|
||||
{
|
||||
GESAsset *asset;
|
||||
GParameter *params;
|
||||
GParamSpec **specs;
|
||||
GESTimelineElementClass *klass;
|
||||
|
@ -818,6 +819,9 @@ ges_timeline_element_copy (GESTimelineElement * self, gboolean deep)
|
|||
g_free (params);
|
||||
|
||||
|
||||
asset = ges_extractable_get_asset (GES_EXTRACTABLE (self));
|
||||
if (asset)
|
||||
ges_extractable_set_asset (GES_EXTRACTABLE (ret), asset);
|
||||
if (deep) {
|
||||
if (klass->deep_copy)
|
||||
klass->deep_copy (self, ret);
|
||||
|
|
Loading…
Reference in a new issue