]> git.0d.be Git - empathy.git/commitdiff
Call: Low the video watchdog timeout to 1 second
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 7 Dec 2011 13:42:40 +0000 (13:42 +0000)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 7 Dec 2011 13:42:43 +0000 (13:42 +0000)
Switch back to the avatar if there was at least one second of not receiving any
new video frames to display.

With this change the reaction time will be between 1 (best case) and 2
(worse case) seconds from the point the last frame went into the sync.
Before it was 5 seconds (best case) and up to 10 seconds (worst case),
which doesn't make for a very good experience

src/empathy-call-window.c

index 7a4994c93b59a80e08b13f88eb9c12cd697cb4f0..a89d220c437533a891cd5879e142f4771c384a62 100644 (file)
@@ -3365,7 +3365,7 @@ empathy_call_window_src_added_cb (EmpathyCallHandler *handler,
             G_CALLBACK (empathy_call_window_video_probe_cb), self);
         if (priv->got_video_src > 0)
           g_source_remove (priv->got_video_src);
-        priv->got_video_src = g_timeout_add_seconds (5,
+        priv->got_video_src = g_timeout_add_seconds (1,
             empathy_call_window_check_video_cb, self);
         break;
       default: