[totem] browser-plugin: Issue a warning instead of asserting



commit 0d584df115da9cebdfb6b0c9dd78d276ac8d2c8b
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Oct 11 08:31:55 2012 +0200

    browser-plugin: Issue a warning instead of asserting

 browser-plugin/totem-plugin-viewer.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 32bd2e7..391d0f1 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -2184,8 +2184,10 @@ int main (int argc, char **argv)
 	}
 #endif
 
-	if (gtk_clutter_init (NULL, NULL) != CLUTTER_INIT_SUCCESS)
-		g_assert_not_reached ();
+	if (gtk_clutter_init (NULL, NULL) != CLUTTER_INIT_SUCCESS) {
+		g_warning ("Could not initialise clutter-gtk");
+		return 1;
+	}
 
 	context = g_option_context_new ("- Play audio and video inside a web browser");
 	baconoptiongroup = bacon_video_widget_get_option_group();



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