diff --git a/tests/examples/overlays.c b/tests/examples/overlays.c index 6ecb53b4f0..c54ea6e3b7 100644 --- a/tests/examples/overlays.c +++ b/tests/examples/overlays.c @@ -32,8 +32,6 @@ GESTimelineObject *make_source (char *path, guint64 start, guint64 duration, GESTimelineObject *make_overlay (char *text, guint64 start, guint64 duration, gint priority); -gboolean print_transition_data (GESTimelineObject * tr); - GESTimelinePipeline *make_timeline (char *path, float duration, char *text); GESTimelineObject * @@ -69,38 +67,6 @@ make_overlay (char *text, guint64 start, guint64 duration, gint priority) return ret; } -gboolean -print_transition_data (GESTimelineObject * tr) -{ - GESTrackObject *trackobj; - GstElement *gnlobj; - guint64 start, duration; - gint priority; - char *name; - GList *trackobjects, *tmp; - - if (!tr) - return FALSE; - - trackobjects = ges_timeline_object_get_track_objects (tr); - trackobj = GES_TRACK_OBJECT (trackobjects->data); - gnlobj = ges_track_object_get_gnlobject (trackobj); - - g_object_get (gnlobj, "start", &start, "duration", &duration, - "priority", &priority, "name", &name, NULL); - g_print ("gnlobject for %s: %f %f %d\n", name, - ((gfloat) start) / GST_SECOND, - ((gfloat) duration) / GST_SECOND, priority); - - for (tmp = trackobjects; tmp; tmp = tmp->next) { - g_object_unref (GES_TRACK_OBJECT (tmp->data)); - } - - g_list_free (trackobjects); - - return FALSE; -} - GESTimelinePipeline * make_timeline (char *path, float duration, char *text) { diff --git a/tests/examples/text_properties.c b/tests/examples/text_properties.c index 0aa93a080a..90d3cc388c 100644 --- a/tests/examples/text_properties.c +++ b/tests/examples/text_properties.c @@ -29,8 +29,6 @@ typedef struct GESTimelineObject *make_source (char *path, guint64 start, guint64 duration, gint priority, gchar * text); -gboolean print_transition_data (GESTimelineObject * tr); - GESTimelinePipeline *make_timeline (char *path, float duration, char *text); GESTimelineObject * @@ -53,38 +51,6 @@ make_source (char *path, guint64 start, guint64 duration, gint priority, return ret; } -gboolean -print_transition_data (GESTimelineObject * tr) -{ - GESTrackObject *trackobj; - GstElement *gnlobj; - guint64 start, duration; - gint priority; - char *name; - GList *trackobjects, *tmp; - - if (!tr) - return FALSE; - - trackobjects = ges_timeline_object_get_track_objects (tr); - trackobj = GES_TRACK_OBJECT (trackobjects->data); - gnlobj = ges_track_object_get_gnlobject (trackobj); - - g_object_get (gnlobj, "start", &start, "duration", &duration, - "priority", &priority, "name", &name, NULL); - g_print ("gnlobject for %s: %f %f %d\n", name, - ((gfloat) start) / GST_SECOND, - ((gfloat) duration) / GST_SECOND, priority); - - for (tmp = trackobjects; tmp; tmp = tmp->next) { - g_object_unref (GES_TRACK_OBJECT (tmp->data)); - } - - g_list_free (trackobjects); - - return FALSE; -} - GESTimelinePipeline * make_timeline (char *path, float duration, char *text) {