summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-07-25 20:36:47 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-10-11 15:36:06 -0400
commit6fe8daabcf8ba6fff6e7926330c6c4d64327a88c (patch)
tree096fc042a687b825da72badbc99b63dad1f18f76 /tests
parent1e79915c6e26e57aafc91766c2fdeb9d08fe6d24 (diff)
downloadfarstream-6fe8daabcf8ba6fff6e7926330c6c4d64327a88c.tar.gz
rawudp: Use force_remote_candidates, not set
Diffstat (limited to 'tests')
-rw-r--r--tests/check/rtp/conference.c7
-rw-r--r--tests/check/rtp/sendcodecs.c3
-rw-r--r--tests/check/transmitter/rawudp.c4
3 files changed, 11 insertions, 3 deletions
diff --git a/tests/check/rtp/conference.c b/tests/check/rtp/conference.c
index 4b0f7ad0..b3d24923 100644
--- a/tests/check/rtp/conference.c
+++ b/tests/check/rtp/conference.c
@@ -178,6 +178,13 @@ _new_local_candidate (FsStream *stream, FsCandidate *candidate)
candidates = g_list_prepend (NULL, candidate);
ret = fs_stream_set_remote_candidates (other_st->stream, candidates, &error);
+ if (ret == FALSE && error &&
+ error->domain == FS_ERROR && error->code == FS_ERROR_NOT_IMPLEMENTED)
+ {
+ g_clear_error (&error);
+ ret = fs_stream_force_remote_candidates (other_st->stream, candidates,
+ &error);
+ }
g_list_free (candidates);
if (error)
diff --git a/tests/check/rtp/sendcodecs.c b/tests/check/rtp/sendcodecs.c
index 9ec3f171..e1751da1 100644
--- a/tests/check/rtp/sendcodecs.c
+++ b/tests/check/rtp/sendcodecs.c
@@ -304,7 +304,8 @@ one_way (GstElement *recv_pipeline, gint port)
candidates = g_list_prepend (NULL,
fs_candidate_new ("1", FS_COMPONENT_RTP, FS_CANDIDATE_TYPE_HOST,
FS_NETWORK_PROTOCOL_UDP, "127.0.0.1", port));
- ts_fail_unless (fs_stream_set_remote_candidates (stream, candidates, &error),
+ ts_fail_unless (fs_stream_force_remote_candidates (stream, candidates,
+ &error),
"Could not set remote candidate");
fs_candidate_list_destroy (candidates);
diff --git a/tests/check/transmitter/rawudp.c b/tests/check/transmitter/rawudp.c
index bbe9e8eb..637a62bc 100644
--- a/tests/check/transmitter/rawudp.c
+++ b/tests/check/transmitter/rawudp.c
@@ -143,7 +143,7 @@ _new_local_candidate (FsStreamTransmitter *st, FsCandidate *candidate,
item = g_list_prepend (NULL, candidate);
- ret = fs_stream_transmitter_set_remote_candidates (st, item, &error);
+ ret = fs_stream_transmitter_force_remote_candidates (st, item, &error);
g_list_free (item);
@@ -901,7 +901,7 @@ GST_START_TEST (test_rawudptransmitter_strange_arguments)
cand = fs_candidate_new ("abc", 1,
FS_CANDIDATE_TYPE_HOST, FS_NETWORK_PROTOCOL_UDP, "1.2.3.4", 0);
list = g_list_prepend (NULL, cand);
- ts_fail_unless (fs_stream_transmitter_set_remote_candidates (st, list,
+ ts_fail_unless (fs_stream_transmitter_force_remote_candidates (st, list,
&error));
ts_fail_unless (error == NULL);
fs_candidate_list_destroy (list);