asset: Fix set_proxy to abort when an error happens

Differential Revision: https://phabricator.freedesktop.org/D1574
This commit is contained in:
Alexandru Băluț 2016-12-21 12:22:31 +01:00 committed by Thibault Saunier
parent 6b9faec7dc
commit 872d15eb9d

View file

@ -725,6 +725,8 @@ ges_asset_set_proxy (GESAsset * asset, GESAsset * proxy)
GST_ERROR_OBJECT (asset,
"Trying to use %s as a proxy, but it is already proxying %s",
proxy->priv->id, proxy->priv->proxy_target->priv->id);
return FALSE;
}
if (g_list_find (proxy->priv->proxies, asset)) {