[farsight2/master] Verify payload type in dtmf event test

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


---
 tests/check/main/rtpsendcodecs.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/tests/check/main/rtpsendcodecs.c b/tests/check/main/rtpsendcodecs.c
index ec51a4c..48c4391 100644
--- a/tests/check/main/rtpsendcodecs.c
+++ b/tests/check/main/rtpsendcodecs.c
@@ -260,9 +260,13 @@ send_dmtf_havedata_handler (GstPad *pad, GstBuffer *buf, gpointer user_data)
 
   ts_fail_unless (gst_rtp_buffer_validate (buf), "Buffer is not valid rtp");
 
+  fail_unless (gst_rtp_buffer_get_payload_type (buf) == dtmf_id,
+      "Payload type is not DTMF");
+
   data = gst_rtp_buffer_get_payload (buf);
 
-  ts_fail_if (data[0] != digit, "Not sending the right digit");
+  ts_fail_if (data[0] != digit, "Not sending the right digit"
+      " (sending %d, should be %d", data[0], digit);
 
   received = TRUE;
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list