upgrade deps

This commit is contained in:
Scott Lamb
2018-01-30 22:05:39 -08:00
parent d192d98129
commit 6902be1981
6 changed files with 104 additions and 77 deletions

View File

@@ -1152,7 +1152,7 @@ impl LockedDatabase {
/// On success, returns the id of a new or existing row.
pub fn insert_video_sample_entry(&mut self, w: u16, h: u16, data: Vec<u8>,
rfc6381_codec: String) -> Result<i32, Error> {
let sha1 = hash::hash2(hash::MessageDigest::sha1(), &data)?;
let sha1 = hash::hash(hash::MessageDigest::sha1(), &data)?;
let mut sha1_bytes = [0u8; 20];
sha1_bytes.copy_from_slice(&sha1);

View File

@@ -656,7 +656,7 @@ impl<'a> InnerWriter<'a> {
self.index.add_sample(duration, unflushed.len, unflushed.is_key);
self.extend_local_start(unflushed.local_time);
let mut sha1_bytes = [0u8; 20];
sha1_bytes.copy_from_slice(&self.hasher.finish2()?[..]);
sha1_bytes.copy_from_slice(&self.hasher.finish()?[..]);
let start = self.prev_end.unwrap_or(self.local_start);
let end = start + recording::Duration(self.index.total_duration_90k as i64);
let flags = if self.index.has_trailing_zero() { db::RecordingFlags::TrailingZero as i32 }

View File

@@ -883,7 +883,7 @@ impl FileBuilder {
video_sample_entries: self.video_sample_entries,
initial_sample_byte_pos,
last_modified: mtime.into(),
etag: header::EntityTag::strong(strutil::hex(&etag.finish2()?)),
etag: header::EntityTag::strong(strutil::hex(&etag.finish()?)),
})))
}
@@ -1566,7 +1566,7 @@ mod tests {
})
.wait()
.unwrap()
.finish2()
.finish()
.unwrap()
}