asset: Do not allow proxying over the same currently proxied asset
authorThibault Saunier <thibault.saunier@collabora.com>
Sat, 29 Dec 2012 20:58:02 +0000 (17:58 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 31 Dec 2012 02:12:27 +0000 (23:12 -0300)
ges/ges-asset.c

index fcf9130..798265e 100644 (file)
@@ -586,6 +586,10 @@ ges_asset_set_proxy (GESAsset * asset, const gchar * new_id)
         " NOT possible", new_id);
 
     return FALSE;
+  } else if (g_strcmp0 (asset->priv->proxied_asset_id, new_id) == 0) {
+    GST_WARNING_OBJECT (asset, "Trying to proxy to same currently set proxy");
+
+    return FALSE;
   }
 
   if (asset->priv->proxied_asset_id)