project: Do not warn when resetting URI to the same one
authorThibault Saunier <tsaunier@igalia.com>
Mon, 9 Mar 2020 14:49:02 +0000 (11:49 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Mon, 9 Mar 2020 14:49:02 +0000 (11:49 -0300)
ges/ges-project.c

index 4320fd019e31306da18f0f42acdad1fd486aa797..75b7a49413d27d87dfccf7b263c0747658dc9d09 100644 (file)
@@ -190,7 +190,8 @@ ges_project_set_uri (GESProject * project, const gchar * uri)
 
   priv = project->priv;
   if (priv->uri) {
-    GST_WARNING_OBJECT (project, "Trying to rest URI, this is prohibited");
+    if (g_strcmp0 (priv->uri, uri))
+      GST_WARNING_OBJECT (project, "Trying to reset URI, this is prohibited");
 
     return;
   }