From: Thibault Saunier Date: Sat, 29 Dec 2012 20:58:02 +0000 (-0300) Subject: asset: Do not allow proxying over the same currently proxied asset X-Git-Tag: 1.19.3~493^2~2065 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf1e966d2599438cecc3f072cf92c267efeabdad;p=platform%2Fupstream%2Fgstreamer.git asset: Do not allow proxying over the same currently proxied asset --- diff --git a/ges/ges-asset.c b/ges/ges-asset.c index fcf9130..798265e 100644 --- a/ges/ges-asset.c +++ b/ges/ges-asset.c @@ -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)