[farsight2/master] tests: Verify that it is not possible to disable all codecs

Olivier Crête olivier.crete at collabora.co.uk
Mon Oct 26 05:32:58 PDT 2009


Add a reserve-pt to guarantee that it is not possible to disable all codecs
---
 tests/check/rtp/codecs.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tests/check/rtp/codecs.c b/tests/check/rtp/codecs.c
index e3a78f5..9d5c6aa 100644
--- a/tests/check/rtp/codecs.c
+++ b/tests/check/rtp/codecs.c
@@ -158,6 +158,9 @@ GST_START_TEST (test_rtpcodecs_codec_preferences)
     codec->id = FS_CODEC_ID_DISABLE;
   }
 
+  codecs = g_list_prepend (codecs, fs_codec_new (116, "reserve-pt",
+          FS_MEDIA_TYPE_AUDIO, 0));
+
   fail_if (fs_session_set_codec_preferences (dat->session, codecs,
           &error),
       "Disabling all codecs did not fail");
-- 
1.5.6.5



More information about the farsight-commits mailing list