[empathy] CallWindow: ignore events in the data probe callback
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] CallWindow: ignore events in the data probe callback
- Date: Mon, 25 Jul 2011 11:54:24 +0000 (UTC)
commit c4906c89433cdd5dff9f500579c580799fe77dca
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Fri Jul 22 12:08:39 2011 +0100
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 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index 69ceb17..7ad0eb1 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]