project: Do not concider adding am already tracked asset as failure
authorThibault Saunier <tsaunier@gnome.org>
Fri, 26 Sep 2014 16:39:19 +0000 (18:39 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Mon, 10 Nov 2014 15:22:39 +0000 (16:22 +0100)
It is not really a failure, just a special case.

ges/ges-project.c

index 7556396..30ddad6 100644 (file)
@@ -624,7 +624,7 @@ ges_project_add_asset (GESProject * project, GESAsset * asset)
   g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
 
   if (g_hash_table_lookup (project->priv->assets, ges_asset_get_id (asset)))
-    return FALSE;
+    return TRUE;
 
   g_hash_table_insert (project->priv->assets,
       g_strdup (ges_asset_get_id (asset)), gst_object_ref (asset));