add title sources to ges-launch
authorBrandon Lewis <brandon@collabora.co.uk>
Wed, 16 Jun 2010 11:22:15 +0000 (13:22 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 9 Jul 2010 11:21:10 +0000 (13:21 +0200)
tools/ges-launch.c

index ebb0d0b..d040c8c 100644 (file)
@@ -212,6 +212,15 @@ create_timeline (int nbargs, gchar ** argv)
 
     }
 
+    else if (!g_strcmp0 ("+title", source)) {
+      obj = GES_TIMELINE_OBJECT (ges_timeline_title_source_new ());
+
+      g_object_set (obj, "duration", duration, "text", arg0, NULL);
+
+      g_print ("Adding <title:%s> duration %" GST_TIME_FORMAT "\n",
+          arg0, GST_TIME_ARGS (duration));
+    }
+
     else {
       gchar *uri;
       guint64 inpoint;