Mercurial > pidgin
diff libpurple/media/media.c @ 29173:983af0970bb2
Transfer setting Farsight 2's remote candidates to the Fs2 media backend.
author | maiku@pidgin.im |
---|---|
date | Mon, 26 Oct 2009 22:14:25 +0000 |
parents | f600903f7811 |
children | d9d0674dfbb3 |
line wrap: on
line diff
--- a/libpurple/media/media.c Mon Oct 26 21:35:11 2009 +0000 +++ b/libpurple/media/media.c Mon Oct 26 22:14:25 2009 +0000 @@ -1531,7 +1531,6 @@ { #ifdef USE_VV PurpleMediaStream *stream; - GError *err = NULL; g_return_if_fail(PURPLE_IS_MEDIA(media)); stream = purple_media_get_stream(media, sess_id, participant); @@ -1549,17 +1548,9 @@ purple_media_candidate_list_copy(remote_candidates)); if (stream->accepted == TRUE) { - GList *candidates = purple_media_candidate_list_to_fs( - stream->remote_candidates); - fs_stream_set_remote_candidates(stream->stream, - candidates, &err); - fs_candidate_list_destroy(candidates); - - if (err) { - purple_debug_error("media", "Error adding remote" - " candidates: %s\n", err->message); - g_error_free(err); - } + purple_media_backend_add_remote_candidates( + media->priv->backend, sess_id, participant, + remote_candidates); } #endif }