ges-project: Surface a meaningful error when no suitable formatter.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 3 Apr 2015 14:48:03 +0000 (16:48 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 7 Apr 2015 12:15:36 +0000 (14:15 +0200)
Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D67

ges/ges-project.c

index 43fb60d..ae5dc15 100644 (file)
@@ -191,8 +191,10 @@ _load_project (GESProject * project, GESTimeline * timeline, GError ** error)
   if (priv->formatter_asset == NULL)
     priv->formatter_asset = _find_formatter_asset_for_id (priv->uri);
 
-  if (priv->formatter_asset == NULL)
+  if (priv->formatter_asset == NULL) {
+    lerr = g_error_new (GES_ERROR, 0, "Could not find a suitable formatter");
     goto failed;
+  }
 
   formatter = GES_FORMATTER (ges_asset_extract (priv->formatter_asset, &lerr));
   if (lerr) {