mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 22:46:24 +00:00
ges-pitivi-formatter: Don't flood stdout with alarming conclusions.
Reviewers: thiblahute Differential Revision: http://phabricator.freedesktop.org/D56
This commit is contained in:
parent
4f3b223f98
commit
54c5723b75
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue