From 54c5723b756e8086bb4ed9c140b1e495fc847d59 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Wed, 25 Mar 2015 12:22:43 +0100 Subject: [PATCH] ges-pitivi-formatter: Don't flood stdout with alarming conclusions. Reviewers: thiblahute Differential Revision: http://phabricator.freedesktop.org/D56 --- ges/ges-pitivi-formatter.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ges/ges-pitivi-formatter.c b/ges/ges-pitivi-formatter.c index 408ed1d6f6..58716d0a35 100644 --- a/ges/ges-pitivi-formatter.c +++ b/ges/ges-pitivi-formatter.c @@ -108,10 +108,17 @@ pitivi_can_load_uri (GESFormatter * dummy_instance, const gchar * uri, gboolean ret = TRUE; xmlXPathObjectPtr xpathObj; xmlXPathContextPtr xpathCtx; + gchar *filename = g_filename_from_uri (uri, NULL, NULL); + + if (!g_file_test (filename, G_FILE_TEST_EXISTS)) { + g_free (filename); + return FALSE; + } + + g_free (filename); if (!(doc = xmlParseFile (uri))) { - GST_ERROR ("The xptv file for uri %s was badly formed or did not exist", - uri); + GST_ERROR ("The xptv file for uri %s was badly formed", uri); return FALSE; }