source = ges_custom_timeline_source_new (my_fill_track_func, NULL);
fail_unless (source != NULL);
- g_object_set (source, "duration", GST_SECOND, "start", 42, NULL);
+ g_object_set (source, "duration", GST_SECOND, "start", (guint64) 42, NULL);
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source), GST_SECOND);
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_START (source), 42);
/* Create two 1s sources */
source1 = ges_custom_timeline_source_new (my_fill_track_func, NULL);
- g_object_set (source1, "duration", GST_SECOND, "start", 42, NULL);
+ g_object_set (source1, "duration", GST_SECOND, "start", (guint64) 42, NULL);
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source1),
GST_SECOND);
source2 = ges_custom_timeline_source_new (my_fill_track_func, NULL);
- g_object_set (source2, "duration", GST_SECOND, "start", 42, NULL);
+ g_object_set (source2, "duration", GST_SECOND, "start", (guint64) 42, NULL);
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source2),
GST_SECOND);
GES_TIMELINE_OBJECT (source1)));
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_START (source2), 0);
- g_object_set (source1, "start", 42, NULL);
+ g_object_set (source1, "start", (guint64) 42, NULL);
/* re-add source1... using the normal API, it should be added to the end */
fail_unless (ges_timeline_layer_add_object (layer,
fail_unless (object != NULL);
/* Set some properties */
- g_object_set (object, "start", 42, "duration", 51, "in-point", 12, NULL);
+ g_object_set (object, "start", (guint64) 42, "duration", (guint64) 51,
+ "in-point", (guint64) 12, NULL);
assert_equals_uint64 (GES_TIMELINE_OBJECT_START (object), 42);
assert_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (object), 51);
assert_equals_uint64 (GES_TIMELINE_OBJECT_INPOINT (object), 12);
gnl_object_check (trackobject->gnlobject, 42, 51, 12, 51, 0, TRUE);
/* Change more properties, see if they propagate */
- g_object_set (object, "start", 420, "duration", 510, "in-point", 120, NULL);
+ g_object_set (object, "start", (guint64) 420, "duration", (guint64) 510,
+ "in-point", (guint64) 120, NULL);
assert_equals_uint64 (GES_TIMELINE_OBJECT_START (object), 420);
assert_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (object), 510);
assert_equals_uint64 (GES_TIMELINE_OBJECT_INPOINT (object), 120);