diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2011-12-22 22:11:16 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2011-12-22 22:11:16 -0500 |
commit | 83b244ab71cae54a4bad81ebb7bad05f4e17360f (patch) | |
tree | a11b6fb886ad252ded86b225de1921db6a2b7ab1 /telepathy-farstream | |
parent | 54f2caec8837d35fba22a1c27c08ad53d02906e7 (diff) | |
download | telepathy-farstream-83b244ab71cae54a4bad81ebb7bad05f4e17360f.tar.gz |
Read the Sending/Receiving states in the GetAll
Diffstat (limited to 'telepathy-farstream')
-rw-r--r-- | telepathy-farstream/call-stream.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/telepathy-farstream/call-stream.c b/telepathy-farstream/call-stream.c index 654a9da..5ca5b3d 100644 --- a/telepathy-farstream/call-stream.c +++ b/telepathy-farstream/call-stream.c @@ -973,6 +973,22 @@ got_stream_media_properties (TpProxy *proxy, GHashTable *out_Properties, goto invalid_property; } + self->sending_state = tp_asv_get_uint32 (out_Properties, "SendingState", + &valid); + if (!valid) + { + g_warning ("No valid sending state"); + goto invalid_property; + } + + self->receiving_state = tp_asv_get_uint32 (out_Properties, + "ReceivingState", &valid); + if (!valid) + { + g_warning ("No valid receiving state"); + goto invalid_property; + } + /* FIXME: controlling is on the endpoint self->controlling = tp_asv_get_boolean (out_Properties, "Controlling", &valid); |