flv: Fix compilation after change to Buffer::from_mut_slice()

It does not return an Option<_> anymore.
This commit is contained in:
Sebastian Dröge 2018-12-27 10:45:59 +02:00
parent 04955f61d7
commit bddc4f325e

View file

@ -203,7 +203,7 @@ impl AudioFormat {
data.into_inner() data.into_inner()
}; };
let header = gst::Buffer::from_mut_slice(header).unwrap(); let header = gst::Buffer::from_mut_slice(header);
let comment = { let comment = {
let comment_size = 4 + 7 /* nothing */ + 4 + 1; let comment_size = 4 + 7 /* nothing */ + 4 + 1;
@ -217,7 +217,7 @@ impl AudioFormat {
data.into_inner() data.into_inner()
}; };
let comment = gst::Buffer::from_mut_slice(comment).unwrap(); let comment = gst::Buffer::from_mut_slice(comment);
Some(gst::Caps::new_simple( Some(gst::Caps::new_simple(
"audio/x-speex", "audio/x-speex",