From aac186a742f5690f99083a6ae31d30bf8c18b65a Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 31 Oct 2014 11:32:37 +0100 Subject: [PATCH] tools: Never try to propose same URI when we know it is missing URI --- tools/ges-launch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/ges-launch.c b/tools/ges-launch.c index 9ac7cac11f..001b3051b2 100644 --- a/tools/ges-launch.c +++ b/tools/ges-launch.c @@ -186,7 +186,9 @@ ges_launch_get_new_uri_from_wrong_uri (const gchar * old_uri) res = g_build_filename (new_paths->pdata[i], basename, NULL); g_free (basename); - if (g_hash_table_lookup (tried_uris, res)) { + if (g_strcmp0 (old_uri, res) == 0) { + g_hash_table_add (tried_uris, res); + } else if (g_hash_table_lookup (tried_uris, res)) { GST_DEBUG ("File already tried: %s\n", res); g_free (res); } else {