diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-03-09 04:18:37 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2009-03-09 04:18:37 +0800 |
commit | 61f15230eed6c996c562bd4670961e8434b8db7a (patch) | |
tree | 6a16c74227b8c11763733863cb7cbfdb4f63b1f7 /src/empathy-call-window.c | |
parent | f91384647c6e8dbc5b8aebb58fdb96ab745376cf (diff) | |
download | gsoc2013-empathy-61f15230eed6c996c562bd4670961e8434b8db7a.tar gsoc2013-empathy-61f15230eed6c996c562bd4670961e8434b8db7a.tar.gz gsoc2013-empathy-61f15230eed6c996c562bd4670961e8434b8db7a.tar.bz2 gsoc2013-empathy-61f15230eed6c996c562bd4670961e8434b8db7a.tar.lz gsoc2013-empathy-61f15230eed6c996c562bd4670961e8434b8db7a.tar.xz gsoc2013-empathy-61f15230eed6c996c562bd4670961e8434b8db7a.tar.zst gsoc2013-empathy-61f15230eed6c996c562bd4670961e8434b8db7a.zip |
Handle resource-request
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
svn path=/trunk/; revision=2640
Diffstat (limited to 'src/empathy-call-window.c')
-rw-r--r-- | src/empathy-call-window.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index 102395e57..0564daaa2 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -703,6 +703,23 @@ empathy_call_window_conference_added_cb (EmpathyCallHandler *handler, gst_element_set_state (conference, GST_STATE_PLAYING); } +static gboolean +empathy_call_window_request_resource_cb (EmpathyCallHandler *handler, + FsMediaType type, FsStreamDirection direction, gpointer user_data) +{ + EmpathyCallWindow *self = EMPATHY_CALL_WINDOW (user_data); + EmpathyCallWindowPriv *priv = GET_PRIV (self); + + if (type != TP_MEDIA_STREAM_TYPE_VIDEO) + return TRUE; + + if (direction == FS_DIRECTION_RECV) + return TRUE; + + /* video and direction is send */ + return priv->video_input != NULL; +} + static void empathy_call_window_disconnected (EmpathyCallWindow *self) { @@ -1033,6 +1050,8 @@ empathy_call_window_realized_cb (GtkWidget *widget, EmpathyCallWindow *window) g_signal_connect (priv->handler, "conference-added", G_CALLBACK (empathy_call_window_conference_added_cb), window); + g_signal_connect (priv->handler, "request-resource", + G_CALLBACK (empathy_call_window_request_resource_cb), window); g_signal_connect (priv->handler, "closed", G_CALLBACK (empathy_call_window_channel_closed_cb), window); g_signal_connect (priv->handler, "src-pad-added", |