diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-15 01:32:24 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-12-16 01:27:35 +0800 |
commit | 33999734f01e9f8d3a85532904bb04dcb3271f0b (patch) | |
tree | 5ccc9d5b7990bc974fdb1545c998654f8f16bba0 /libempathy/empathy-tp-call.c | |
parent | 594e7fee5d0fc22e385da905e1db93829553f0ed (diff) | |
download | gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.gz gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.bz2 gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.lz gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.xz gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.zst gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.zip |
add empathy_tp_call_has_initial_video
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r-- | libempathy/empathy-tp-call.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index 6d0941c39..9d52075ff 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -794,3 +794,25 @@ empathy_tp_call_get_connection_manager (EmpathyTpCall *self) return tp_account_get_connection_manager (account); } + +gboolean +empathy_tp_call_has_initial_video (EmpathyTpCall *self) +{ + EmpathyTpCallPriv *priv = GET_PRIV (self); + GHashTable *props; + gboolean initial_video; + gboolean valid; + + if (priv->channel == NULL) + return FALSE; + + g_object_get (priv->channel, "channel-properties", &props, NULL); + + initial_video = tp_asv_get_boolean (props, + TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA ".InitialVideo", &valid); + if (!valid) + initial_video = FALSE; + + g_hash_table_unref (props); + return initial_video; +} |