]> git.0d.be Git - empathy.git/commitdiff
CallWindow: ignore events in the data probe callback
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Fri, 22 Jul 2011 11:08:39 +0000 (12:08 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 25 Jul 2011 11:47:24 +0000 (12:47 +0100)
We only want to show the remote video again if we receive
video frames, not if we receive an event for whatever reason.

That's in fact what we get when we start sending our own video,
and so we don't want to display the remote video if it was
hidden because we're not receiving it anymore.

src/empathy-call-window.c

index 69ceb17cced22ed85cf83de37ba4ec55d045a60e..7ad0eb1e1cb18de83549220e6fd863c9372cb62c 100644 (file)
@@ -2408,6 +2408,10 @@ empathy_call_window_video_probe_cb (GstPad *pad,
     GstMiniObject *mini_obj,
     EmpathyCallWindow *self)
 {
+  /* Ignore events */
+  if (GST_IS_EVENT (mini_obj))
+    return TRUE;
+
   if (G_UNLIKELY (!self->priv->got_video))
     {
       /* show the remote video */