aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-tp-call.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r--libempathy/empathy-tp-call.c19
1 files changed, 15 insertions, 4 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index 7703aeffb..45aa22be1 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -503,10 +503,7 @@ tp_call_finalize (GObject *object)
if (priv->channel != NULL)
{
- g_signal_handlers_disconnect_by_func (priv->channel,
- tp_call_channel_invalidated_cb, object);
- tp_call_close_channel (EMPATHY_TP_CALL (object));
- g_object_unref (priv->channel);
+ empathy_tp_call_close (EMPATHY_TP_CALL (object));
}
if (priv->stream_engine != NULL)
@@ -666,6 +663,20 @@ empathy_tp_call_accept_incoming_call (EmpathyTpCall *call)
}
void
+empathy_tp_call_close (EmpathyTpCall *call)
+{
+ EmpathyTpCallPriv *priv = GET_PRIV (call);
+
+ g_signal_handlers_disconnect_by_func (priv->channel,
+ tp_call_channel_invalidated_cb, call);
+
+ tp_call_close_channel (call);
+
+ g_object_unref (priv->channel);
+ priv->channel = NULL;
+}
+
+void
empathy_tp_call_request_video_stream_direction (EmpathyTpCall *call,
gboolean is_sending)
{