summaryrefslogtreecommitdiff
path: root/test/test_l16.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_l16.cc')
-rw-r--r--test/test_l16.cc11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/test_l16.cc b/test/test_l16.cc
index 0cdb4b2..71e4562 100644
--- a/test/test_l16.cc
+++ b/test/test_l16.cc
@@ -57,7 +57,9 @@ public:
CPPUNIT_ASSERT(false); // We need to actually test the profile options here...
{ // Encode
- struct lrtp_t *lrtp = lrtp_init(KEY, SSRC);
+ lrtp_status_t status;
+ struct lrtp_t *lrtp = lrtp_init(&status, KEY, SSRC);
+ CPPUNIT_ASSERT_EQUAL(status, LRTP_OK);
/*
OPTION_L16_SAMPLES_PER_CHANNEL_PER_PACKET
@@ -81,7 +83,8 @@ public:
for(size_t i = 0; i < sizeof(frame); i++) frame[i] = num++;
int ret = 0;
- ret = lrtp_enqueue_frame(lrtp, csrc, frame, sizeof(frame), ts);
+ ret = lrtp_enqueue_frame(lrtp, csrc, frame, sizeof(frame), ts,
+ LRTP_COPY);
while( (ret = lrtp_pack(lrtp, packet, sizeof(packet))) != 0) {
std::string p;
p.append(packet, ret);
@@ -96,7 +99,9 @@ public:
}
{ // Decode
- struct lrtp_t *lrtp = lrtp_init(KEY, SSRC);
+ lrtp_status_t status;
+ struct lrtp_t *lrtp = lrtp_init(&status, KEY, SSRC);
+ CPPUNIT_ASSERT_EQUAL(status, LRTP_OK);
int x =
lrtp_create_profile(lrtp, PROFILE_L16, csrc,