Timeline: Add doc and more comments/fixmes
authorEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 26 Nov 2010 17:38:49 +0000 (18:38 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Sat, 27 Nov 2010 17:12:49 +0000 (18:12 +0100)
ges/ges-timeline.c

index 7e9e1a6c9ee494032b67842beec176264a77fe37..d190370bdff0c5f99cb25a5ca24bd73a46c00b5a 100644 (file)
  *
  * The output type is determined by the #GESTrack that are set on
  * the #GESTimeline.
+ *
+ * To save/load a timeline, you can use the ges_timeline_load_from_uri() and
+ * ges_timeline_save_to_uri() methods to use the default format. If you wish
+ * to specify the format to save/load the timeline from, please consult the
+ * documentation about #GESFormatter.
  */
 
 #include "gesmarshal.h"
@@ -237,6 +242,10 @@ ges_timeline_new_from_uri (gchar * uri)
 {
   GESTimeline *ret;
 
+  /* FIXME : we should have a GError** argument so the user can know why
+   * it wasn't able to load the uri 
+   */
+
   ret = ges_timeline_new ();
 
   if (!ges_timeline_load_from_uri (ret, uri)) {
@@ -265,6 +274,10 @@ ges_timeline_load_from_uri (GESTimeline * timeline, gchar * uri)
   GESFormatter *p = NULL;
   gboolean ret = FALSE;
 
+  /* FIXME : we should have a GError** argument so the user can know why
+   * it wasn't able to load the uri 
+   */
+
   if (!(p = ges_formatter_new_for_uri (uri))) {
     GST_ERROR ("unsupported uri '%s'", uri);
     goto fail;
@@ -300,6 +313,17 @@ ges_timeline_save_to_uri (GESTimeline * timeline, gchar * uri)
   GESFormatter *p = NULL;
   gboolean ret = FALSE;
 
+  /* FIXME : How will the user be able to chose the format he
+   * wishes to store to ? */
+
+  /* FIXME : How will we ensure a timeline loaded with a certain format
+   * will be saved with the same one by default ? We need to make this
+   * easy from an API perspective */
+
+  /* FIXME : we should have a GError** argument so the user can know why
+   * it wasn't able to save
+   */
+
   if (!(p = ges_formatter_new_for_uri (uri))) {
     GST_ERROR ("unsupported uri '%s'", uri);
     goto fail;