diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-08-21 13:41:53 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.co.uk> | 2009-08-21 13:41:53 -0400 |
commit | 7f6dd6061de5814b42799742022c3d4579b8c9cc (patch) | |
tree | 444e74c1e5f02db98fb51d0d8511c0f6c576a9fa | |
parent | dcc0cecdc50dfdfd459dc1b5d04eac6fc6a9313a (diff) |
Fix ice priority, the cast was wrong and made the priority always 0
-rw-r--r-- | telepathy-farsight/stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telepathy-farsight/stream.c b/telepathy-farsight/stream.c index 5c8449e..b1eb288 100644 --- a/telepathy-farsight/stream.c +++ b/telepathy-farsight/stream.c @@ -1023,7 +1023,7 @@ cb_fs_local_candidates_prepared (TfStream *self) 3, proto, 4, "RTP", 5, "AVP", - 6, (double) candidate->priority / 65536.0, + 6, (double) (candidate->priority / 65536.0), 7, type, 8, candidate->username, 9, candidate->password, @@ -1140,7 +1140,7 @@ tp_transports_to_fs (const gchar* foundation, const GPtrArray *transports) g_value_get_uint (g_value_array_get_nth (transport, 2))); /* port */ fs_candidate->priority = (gint) - g_value_get_double (g_value_array_get_nth (transport, 6)) * 65536.0; + (g_value_get_double (g_value_array_get_nth (transport, 6)) * 65536.0); fs_candidate->username = g_value_dup_string (g_value_array_get_nth (transport, 8)); fs_candidate->password = |