summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2010-05-05 13:17:31 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2011-10-11 15:37:14 -0400
commitc63836b5b6b662b80ef6bea2d5365cea313fe42c (patch)
tree2432d621dc029af56a5532252f009983d5f5ceb2 /tests
parent631cad73bf08ae9c5b828d315f09ba659a835bb8 (diff)
downloadfarstream-c63836b5b6b662b80ef6bea2d5365cea313fe42c.tar.gz
rtpconference: Pass the SDES GstStructure as-is
Diffstat (limited to 'tests')
-rw-r--r--tests/check/rtp/conference.c9
-rw-r--r--tests/check/rtp/generic.c6
2 files changed, 11 insertions, 4 deletions
diff --git a/tests/check/rtp/conference.c b/tests/check/rtp/conference.c
index 5e807281..840f98af 100644
--- a/tests/check/rtp/conference.c
+++ b/tests/check/rtp/conference.c
@@ -73,13 +73,16 @@ GST_START_TEST (test_rtpconference_new)
FsSession *sess = NULL;
FsParticipant *part = NULL;
FsStreamDirection dir;
+ GstStructure *s;
dat = setup_simple_conference (1, "fsrtpconference", "bob@127.0.0.1");
st = simple_conference_add_stream (dat, dat, "rawudp", 0, NULL);
- g_object_get (dat->conference, "sdes-cname", &str, NULL);
- ts_fail_unless (!strcmp (str, "bob@127.0.0.1"), "Conference CNAME is wrong");
- g_free (str);
+ g_object_get (dat->conference, "sdes", &s, NULL);
+ ts_fail_unless (gst_structure_get_string (s, "cname") &&
+ !strcmp (gst_structure_get_string (s, "cname"),
+ "bob@127.0.0.1"), "Conference CNAME is wrong");
+ gst_structure_free (s);
g_object_get (st->participant, "cname", &str, NULL);
ts_fail_unless (str == NULL);
diff --git a/tests/check/rtp/generic.c b/tests/check/rtp/generic.c
index 7cd998d2..78f3076b 100644
--- a/tests/check/rtp/generic.c
+++ b/tests/check/rtp/generic.c
@@ -55,6 +55,7 @@ setup_simple_conference_full (
GError *error = NULL;
guint tos;
GstBus *bus;
+ GstStructure *s;
dat->id = id;
dat->cname = g_strdup (cname);
@@ -72,7 +73,10 @@ setup_simple_conference_full (
fail_unless (gst_bin_add (GST_BIN (dat->pipeline), dat->conference),
"Could not add conference to the pipeline");
- g_object_set (dat->conference, "sdes-cname", cname, NULL);
+ g_object_get (dat->conference, "sdes", &s, NULL);
+ gst_structure_set (s, "cname", G_TYPE_STRING, cname, NULL);
+ g_object_set (dat->conference, "sdes", s, NULL);
+ gst_structure_free (s);
dat->session = fs_conference_new_session (FS_CONFERENCE (dat->conference),
mediatype, &error);