Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2018-12-27 11:45:59 +0300
committerSebastian Dröge <sebastian@centricular.com>2018-12-27 11:45:59 +0300
commitbddc4f325e7520f95a9f7068a2a36645baec1b10 (patch)
tree0a19f971ffd3e22a31a94833e969753c5927ea8c
parent04955f61d79e6e4f23fcf8531a0589e43baa0a93 (diff)
flv: Fix compilation after change to Buffer::from_mut_slice()
It does not return an Option<_> anymore.
-rw-r--r--gst-plugin-flv/src/flvdemux.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-plugin-flv/src/flvdemux.rs b/gst-plugin-flv/src/flvdemux.rs
index fd023c65d..3a783cb74 100644
--- a/gst-plugin-flv/src/flvdemux.rs
+++ b/gst-plugin-flv/src/flvdemux.rs
@@ -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",