diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2011-12-22 23:17:51 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2011-12-22 23:17:51 -0500 |
commit | e4f7eba953daff822840f3787b25e042cb4f125d (patch) | |
tree | 92a20228406ca9071bded8f1f9e6d0a3773d40ef | |
parent | fd2ae3128a28b4810405a45025e47335b24f6f9a (diff) | |
download | telepathy-farstream-e4f7eba953daff822840f3787b25e042cb4f125d.tar.gz |
Use tp_value_array_build() correctly
-rw-r--r-- | telepathy-farstream/call-content.c | 9 | ||||
-rw-r--r-- | telepathy-farstream/call-stream.c | 7 |
2 files changed, 13 insertions, 3 deletions
diff --git a/telepathy-farstream/call-content.c b/telepathy-farstream/call-content.c index 8ea19e5..2d76a8a 100644 --- a/telepathy-farstream/call-content.c +++ b/telepathy-farstream/call-content.c @@ -1623,7 +1623,7 @@ fscodecs_to_media_descriptions (TfCallContent *self, GList *codecs) G_TYPE_UINT, fsdirection_to_tpdirection (hdrext->direction), G_TYPE_STRING, hdrext->uri, G_TYPE_STRING, "", - NULL)); + G_TYPE_INVALID)); } fs_rtp_header_extension_list_destroy (fs_rtp_hdrexts); @@ -1916,7 +1916,12 @@ tf_call_content_error_literal (TfCallContent *self, g_warning ("%s", message); tp_cli_call_content_interface_media_call_fail ( self->proxy, -1, - tp_value_array_build (0, reason, detailed_reason, message), + tp_value_array_build (4, + G_TYPE_UINT, 0, + G_TYPE_UINT, reason, + G_TYPE_STRING, detailed_reason, + G_TYPE_STRING, message, + G_TYPE_INVALID), NULL, NULL, NULL, NULL); } diff --git a/telepathy-farstream/call-stream.c b/telepathy-farstream/call-stream.c index 776269f..2d0ce44 100644 --- a/telepathy-farstream/call-stream.c +++ b/telepathy-farstream/call-stream.c @@ -1534,7 +1534,12 @@ tf_call_stream_fail_literal (TfCallStream *self, g_warning ("%s", message); tp_cli_call_stream_interface_media_call_fail ( self->proxy, -1, - tp_value_array_build (0, reason, detailed_reason, message), + tp_value_array_build (4, + G_TYPE_UINT, 0, + G_TYPE_UINT, reason, + G_TYPE_STRING, detailed_reason, + G_TYPE_STRING, message, + G_TYPE_INVALID), NULL, NULL, NULL, NULL); } |