Fix compilation after gstreamer-rs API changes

This commit is contained in:
Sebastian Dröge 2017-12-16 17:42:32 +02:00
parent 607cd154b8
commit 841252c5f7
2 changed files with 2 additions and 2 deletions

View file

@ -927,7 +927,7 @@ impl ToggleRecord {
EventView::Segment(e) => {
let mut state = stream.state.lock().unwrap();
let segment = match e.get_segment().downcast::<gst::ClockTime>() {
let segment = match e.get_segment().clone().downcast::<gst::ClockTime>() {
Err(segment) => {
gst_element_error!(
element,

View file

@ -183,7 +183,7 @@ impl Adapter {
gst_trace!(CAT, "Get buffer of {} bytes, subbuffer of first", size);
let new = front
.get_buffer()
.copy_region(self.skip, Some(size))
.copy_region(*gst::BUFFER_COPY_ALL, self.skip, Some(size))
.unwrap();
Some(new)
} else {