ges: Do not try to set read only properties
authorThibault Saunier <tsaunier@gnome.org>
Sun, 10 Apr 2016 00:12:00 +0000 (21:12 -0300)
committerThibault Saunier <tsaunier@gnome.org>
Sun, 10 Apr 2016 00:12:10 +0000 (21:12 -0300)
When copying and splitting clips

Fixes T7375

ges/ges-track-element.c

index d6a3380..78b95cd 100644 (file)
@@ -1200,6 +1200,8 @@ ges_track_element_copy_properties (GESTimelineElement * element,
       ges_track_element_list_children_properties (GES_TRACK_ELEMENT (element),
       &n_specs);
   for (n = 0; n < n_specs; ++n) {
+    if (!(specs[n]->flags & G_PARAM_WRITABLE))
+      continue;
     g_value_init (&val, specs[n]->value_type);
     ges_track_element_get_child_property_by_pspec (GES_TRACK_ELEMENT (element),
         specs[n], &val);