Commit b8c89730 authored by Thibault Saunier's avatar Thibault Saunier 🌵

asset: Handle trying to proxy an asset to itself

And avoid infinite recursion
parent 902b8ad9
Pipeline #48857 passed with stages
in 126 minutes and 33 seconds
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment