fail_unless (ges_simple_timeline_layer_add_object (gstl,
GES_TIMELINE_OBJECT (tr3), 5));
+ /* at this point the layer should still be valid */
+ g_object_get (G_OBJECT (layer), "valid", &valid, NULL);
+ fail_unless (valid);
+ fail_unless_equals_int (count, 3);
+
fail_unless (ges_simple_timeline_layer_add_object (gstl,
GES_TIMELINE_OBJECT (tr4), -1));
fail_unless (ges_simple_timeline_layer_add_object (gstl,
GES_TIMELINE_OBJECT (tr5), 0));
- /* at this point the layer should still be valid */
- g_object_get (G_OBJECT (layer), "valid", &valid, NULL);
- fail_unless (valid);
- fail_unless_equals_int (count, 1);
-
/* removals which result in two or more adjacent transitions will also
* print a warning on the console. This is expected */
fail_unless (ges_timeline_layer_remove_object (layer,
GES_TIMELINE_OBJECT (source1)));
- /* transition should now be invalid */
+ /* layer should now be invalid */
g_object_get (G_OBJECT (layer), "valid", &valid, NULL);
fail_unless (!valid);
- fail_unless_equals_int (count, 2)
+ fail_unless_equals_int (count, 4)
fail_unless (ges_timeline_layer_remove_object (layer,
GES_TIMELINE_OBJECT (source2)));
g_object_get (G_OBJECT (layer), "valid", &valid, NULL);
fail_unless (!valid);
- fail_unless_equals_int (count, 2);
+ fail_unless_equals_int (count, 4);
GST_DEBUG ("Removing transitions");