asset: Do not allow proxying over the same currently proxied asset

This commit is contained in:
Thibault Saunier 2012-12-29 17:58:02 -03:00
parent 38bc983502
commit bf1e966d25

View file

@ -585,6 +585,10 @@ ges_asset_set_proxy (GESAsset * asset, const gchar * new_id)
GST_WARNING_OBJECT (asset, "Trying to proxy to itself (%s),"
" 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;
}