asset: Handle trying to proxy an asset to itself

And avoid infinite recursion
This commit is contained in:
Thibault Saunier 2019-07-14 16:28:23 -04:00
parent 902b8ad98e
commit b8c897308d

View file

@ -769,7 +769,9 @@ ges_asset_set_proxy (GESAsset * asset, GESAsset * proxy)
GST_INFO_OBJECT (asset, "%s Making sure the proxy chain is fully set.",
ges_asset_get_id (entry->asset));
ges_asset_set_proxy (NULL, asset);
if (g_strcmp0 (asset->priv->proxied_asset_id, proxy->priv->id) ||
g_strcmp0 (asset->priv->id, proxy->priv->proxied_asset_id))
ges_asset_set_proxy (NULL, asset);
}
if (proxy->priv->proxy_target) {