]> git.0d.be Git - empathy.git/commitdiff
empathy_call_window_set_send_video: don't request video stream if the call is not...
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 25 Nov 2009 11:44:17 +0000 (11:44 +0000)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 27 Nov 2009 16:33:44 +0000 (16:33 +0000)
src/empathy-call-window.c

index 1d7b74dc5b162fe1bfc95b30ca13d629fdc1531e..867a1065464f0a98efcc02096076652df54cc503 100644 (file)
@@ -2356,6 +2356,9 @@ empathy_call_window_set_send_video (EmpathyCallWindow *window,
      default. */
   display_video_preview (window, send);
 
+  if (priv->call_state != CONNECTED)
+    return;
+
   g_object_get (priv->handler, "tp-call", &call, NULL);
   DEBUG ("%s sending video", send ? "start": "stop");
   empathy_tp_call_request_video_stream_direction (call, send);