timeline-element: Set asset from the copied element to the new copy
authorThibault Saunier <thibault.saunier@collabora.com>
Sun, 3 Mar 2013 14:16:10 +0000 (11:16 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Fri, 15 Mar 2013 03:13:09 +0000 (00:13 -0300)
ges/ges-timeline-element.c

index 2c8824d..eb71830 100644 (file)
@@ -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);