[empathy: 71/99] Prepare the video input pipeline when there is an initial content



commit 9b68b6c2bd3a55a817857575814d43145644f419
Author: Sjoerd Simons <sjoerd simons collabora co uk>
Date:   Wed Mar 23 14:45:56 2011 +0000

    Prepare the video input pipeline when there is an initial content

 src/empathy-call-window.c |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index c8c2de2..f16e6d4 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -2559,12 +2559,24 @@ start_call (EmpathyCallWindow *self)
 
       if (s == TPY_SENDING_STATE_PENDING_SEND ||
           s == TPY_SENDING_STATE_SENDING)
-        /* Enable 'send video' buttons and display the preview */
-        gtk_toggle_tool_button_set_active (
-          GTK_TOGGLE_TOOL_BUTTON (priv->tool_button_camera_on), TRUE);
+        {
+          /* Enable 'send video' buttons and display the preview */
+          gtk_toggle_tool_button_set_active (
+            GTK_TOGGLE_TOOL_BUTTON (priv->tool_button_camera_on),
+            TRUE);
+        }
       else
-        gtk_toggle_tool_button_set_active (
-          GTK_TOGGLE_TOOL_BUTTON (priv->tool_button_camera_off), TRUE);
+        {
+          gtk_toggle_tool_button_set_active (
+            GTK_TOGGLE_TOOL_BUTTON (priv->tool_button_camera_off),
+            TRUE);
+
+          if (priv->video_preview == NULL)
+            {
+              create_video_preview (self);
+              add_video_preview_to_pipeline (self);
+            }
+        }
     }
 
   g_object_unref (call);



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