[farsight2/master] Default to pcma/pcmu (we know these work)

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:24:26 PST 2008


---
 tests/commandline/simple-call.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/commandline/simple-call.c b/tests/commandline/simple-call.c
index a6fcbcf..9793d5c 100644
--- a/tests/commandline/simple-call.c
+++ b/tests/commandline/simple-call.c
@@ -150,6 +150,16 @@ add_audio_session (GstElement *pipeline, FsConference *conf, guint id,
 
   fs_candidate_list_destroy (cands);
 
+  codecs = g_list_prepend (NULL,
+      fs_codec_new (FS_CODEC_ID_ANY, "PCMA", FS_MEDIA_TYPE_AUDIO, 0));
+  codecs = g_list_prepend (codecs,
+      fs_codec_new (FS_CODEC_ID_ANY, "PCMU", FS_MEDIA_TYPE_AUDIO, 0));
+
+  res = fs_session_set_codec_preferences (ses->session, codecs, &error);
+  print_error (error);
+  fs_codec_list_destroy (codecs);
+
+
   g_object_get (ses->session, "codecs", &codecs, NULL);
   res = fs_stream_set_remote_codecs (ses->stream, codecs, &error);
   print_error (error);
-- 
1.5.6.5




More information about the farsight-commits mailing list