ges-pitivi-formatter: Don't flood stdout with alarming conclusions.

Reviewers: thiblahute

Differential Revision: http://phabricator.freedesktop.org/D56
This commit is contained in:
Mathieu Duponchelle 2015-03-25 12:22:43 +01:00
parent 4f3b223f98
commit 54c5723b75

View file

@ -108,10 +108,17 @@ pitivi_can_load_uri (GESFormatter * dummy_instance, const gchar * uri,
gboolean ret = TRUE; gboolean ret = TRUE;
xmlXPathObjectPtr xpathObj; xmlXPathObjectPtr xpathObj;
xmlXPathContextPtr xpathCtx; 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))) { if (!(doc = xmlParseFile (uri))) {
GST_ERROR ("The xptv file for uri %s was badly formed or did not exist", GST_ERROR ("The xptv file for uri %s was badly formed", uri);
uri);
return FALSE; return FALSE;
} }