From c4906c89433cdd5dff9f500579c580799fe77dca Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Fri, 22 Jul 2011 12:08:39 +0100 Subject: [PATCH] CallWindow: ignore events in the data probe callback 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 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 69ceb17c..7ad0eb1e 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -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 */ -- 2.39.2