fail_unless (G_VALUE_TYPE (bufval) == GST_TYPE_BUFFER);
buf = g_value_peek_pointer (bufval);
if (i == 0) {
- fail_unless (GST_BUFFER_SIZE (buf) == sizeof (streaminfo_header));
- fail_unless (memcmp (GST_BUFFER_DATA (buf), streaminfo_header,
+ fail_unless (gst_buffer_get_size (buf) == sizeof (streaminfo_header));
+ fail_unless (gst_buffer_memcmp (buf, 0, streaminfo_header,
- sizeof (streaminfo_header)));
+ sizeof (streaminfo_header)) == 0);
} else if (i == 1) {
- fail_unless (GST_BUFFER_SIZE (buf) == sizeof (comment_header));
- fail_unless (memcmp (GST_BUFFER_DATA (buf), comment_header,
+ fail_unless (gst_buffer_get_size (buf) == sizeof (comment_header));
+ fail_unless (gst_buffer_memcmp (buf, 0, comment_header,
- sizeof (comment_header)));
+ sizeof (comment_header)) == 0);
}
}