summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2012-07-29 17:09:51 +0200
committerOlivier CrĂȘte <olivier.crete@collabora.com>2012-07-31 16:17:17 +0200
commit61bdb747d1027e5040c774cd57c27b477e3dc7c0 (patch)
tree12cff52ae7b8726111296d8c6be0898ca2a2803a /tests
parent37a223f60b1002bd84fa0d9f6fbbea655db68e39 (diff)
downloadfarstream-61bdb747d1027e5040c774cd57c27b477e3dc7c0.tar.gz
tests: gst_rtp_buffer_validate has been pulled into gst_rtp_buffer_map
Diffstat (limited to 'tests')
-rw-r--r--tests/check/rtp/sendcodecs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/check/rtp/sendcodecs.c b/tests/check/rtp/sendcodecs.c
index 889bd498..9e398809 100644
--- a/tests/check/rtp/sendcodecs.c
+++ b/tests/check/rtp/sendcodecs.c
@@ -339,9 +339,8 @@ send_dmtf_buffer_handler (GstPad *pad, GstPadProbeInfo *info,
GstBuffer *buf = GST_PAD_PROBE_INFO_BUFFER (info);
gchar *data;
- ts_fail_unless (gst_rtp_buffer_validate (buf), "Buffer is not valid rtp");
-
- gst_rtp_buffer_map (buf, GST_MAP_READ, &rtpbuf);
+ ts_fail_unless (gst_rtp_buffer_map (buf, GST_MAP_READ, &rtpbuf),
+ "Buffer is not valid rtp");
if (gst_rtp_buffer_get_payload_type (&rtpbuf) != dtmf_id)
goto out;
@@ -525,9 +524,7 @@ change_ssrc_buffer_handler (GstPad *pad, GstPadProbeInfo *info,
guint buf_ssrc;
GstRTPBuffer rtpbuf = GST_RTP_BUFFER_INIT;
- ts_fail_unless (gst_rtp_buffer_validate (buf));
-
- gst_rtp_buffer_map (buf, GST_MAP_READ, &rtpbuf);
+ ts_fail_unless (gst_rtp_buffer_map (buf, GST_MAP_READ, &rtpbuf));
buf_ssrc = gst_rtp_buffer_get_ssrc (&rtpbuf);
gst_rtp_buffer_unmap (&rtpbuf);