mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-27 05:51:01 +00:00
flv: Fix compilation after change to Buffer::from_mut_slice()
It does not return an Option<_> anymore.
This commit is contained in:
parent
04955f61d7
commit
bddc4f325e
1 changed files with 2 additions and 2 deletions
|
@ -203,7 +203,7 @@ impl AudioFormat {
|
|||
|
||||
data.into_inner()
|
||||
};
|
||||
let header = gst::Buffer::from_mut_slice(header).unwrap();
|
||||
let header = gst::Buffer::from_mut_slice(header);
|
||||
|
||||
let comment = {
|
||||
let comment_size = 4 + 7 /* nothing */ + 4 + 1;
|
||||
|
@ -217,7 +217,7 @@ impl AudioFormat {
|
|||
|
||||
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(
|
||||
"audio/x-speex",
|
||||
|
|
Loading…
Reference in a new issue