[totem] chapters: Don't warn when we'll ignore the error later



commit 394aacbb50f37831e77dad87d6fad081579a6556
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Nov 26 17:35:36 2010 +0000

    chapters: Don't warn when we'll ignore the error later

 src/plugins/chapters/totem-cmml-parser.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/chapters/totem-cmml-parser.c b/src/plugins/chapters/totem-cmml-parser.c
index 153ba61..e91c3f6 100644
--- a/src/plugins/chapters/totem-cmml-parser.c
+++ b/src/plugins/chapters/totem-cmml-parser.c
@@ -535,7 +535,6 @@ totem_cmml_read_file_result (GObject		*source_object,
 	g_object_unref (source_object);
 
 	if (G_UNLIKELY (error != NULL)) {
-		g_warning ("chapters: failed to load CMML file %s: %s", data->file, error->message);
 		if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) ||
 		    g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED)) {
 			/* it's ok if file doesn't exist */
@@ -544,6 +543,7 @@ totem_cmml_read_file_result (GObject		*source_object,
 		} else {
 			data->successful = FALSE;
 			data->error = g_strdup (error->message);
+			g_warning ("chapters: failed to load CMML file %s: %s", data->file, error->message);
 		}
 		g_error_free (error);
 		(data->final) (data, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]