[empathy] recreate the pipeline as soon we destroyed the old one



commit f33b0e66fb97038aed56563b6e7754c37bd8625b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Dec 2 18:10:30 2009 +0000

    recreate the pipeline as soon we destroyed the old one
    
    This will allow us to be able to display the preview after the call has been
    terminated. It's easier and more robust to recreate a new pipeline than
    reusing the old one.

 src/empathy-call-window.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 0594f0e..f5a4a37 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1516,6 +1516,8 @@ empathy_call_window_reset_pipeline (EmpathyCallWindow *self)
       priv->liveadder = NULL;
       priv->funnel = NULL;
 
+      create_pipeline (self);
+
       return TRUE;
     }
   else
@@ -2703,7 +2705,6 @@ empathy_call_window_restart_call (EmpathyCallWindow *window)
 {
   EmpathyCallWindowPriv *priv = GET_PRIV (window);
 
-  create_pipeline (window);
   create_video_output_widget (window);
 
   g_signal_connect (G_OBJECT (priv->audio_input_adj), "value-changed",



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