[totem/gnome-3-6] browser-plugin: Issue a warning instead of asserting



commit ae95ce693a9bf3a6df7b2593933d96f77125dc15
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 a00e23f..d46e936 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]