tests/examples/transition.c: pass transition type to make_timeline
authorBrandon Lewis <brandon.lewis@collabora.co.uk>
Wed, 26 May 2010 11:27:46 +0000 (13:27 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Wed, 9 Jun 2010 09:28:08 +0000 (11:28 +0200)
tests/examples/transition.c

index 2a9e501dfdde6ac1ac74670ea02818ab4c902583..fb78e6692fb4a8faf7b5882e76006beb3e643fd4 100644 (file)
@@ -99,7 +99,8 @@ get_transition_type (char *nick, GEnumClass * smpte_enum_class)
 
 
 GESTimelinePipeline *
-make_timeline (double tdur, char *patha, float adur, char *pathb, float bdur)
+make_timeline (GEnumValue * ttype, double tdur, char *patha, float adur,
+    char *pathb, float bdur)
 {
   GESTimeline *timeline;
   GESTrack *trackv;
@@ -203,7 +204,7 @@ main (int argc, char **argv)
   gdouble adur = (gdouble) atof (argv[2]);
   gdouble bdur = (gdouble) atof (argv[4]);
 
-  pipeline = make_timeline (tdur, argv[1], adur, argv[3], bdur);
+  pipeline = make_timeline (ttype, tdur, argv[1], adur, argv[3], bdur);
 
   mainloop = g_main_loop_new (NULL, FALSE);
   g_timeout_add_seconds ((adur + bdur) + 1, (GSourceFunc) g_main_loop_quit,