[ekiga/ds-clutter] ClutterGST: Fixed warning.



commit 7a1402d71609b5c144a0eeb70cce2e27f94cff69
Author: Damien Sandras <dsandras beip be>
Date:   Thu Jan 9 19:46:18 2014 +0100

    ClutterGST: Fixed warning.

 .../videooutput-main-clutter-gst.cpp               |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/components/clutter-gst-videooutput/videooutput-main-clutter-gst.cpp 
b/lib/engine/components/clutter-gst-videooutput/videooutput-main-clutter-gst.cpp
index 72bc5b2..cf83d86 100644
--- a/lib/engine/components/clutter-gst-videooutput/videooutput-main-clutter-gst.cpp
+++ b/lib/engine/components/clutter-gst-videooutput/videooutput-main-clutter-gst.cpp
@@ -56,8 +56,11 @@ videooutput_clutter_gst_init (Ekiga::ServiceCore &core,
   if (videooutput_core) {
 
     gst_init (argc, argv);
-    gtk_clutter_init (argc, argv);
-    GMVideoOutputManager_clutter_gst *videooutput_manager = new GMVideoOutputManager_clutter_gst (core);
+    if (gtk_clutter_init (argc, argv) != CLUTTER_INIT_SUCCESS)
+      return false;
+
+    GMVideoOutputManager_clutter_gst *videooutput_manager =
+      new GMVideoOutputManager_clutter_gst (core);
 
     videooutput_core->add_manager (*videooutput_manager);
     result = true;


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