mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 13:31:00 +00:00
Fix compilation after gstreamer-rs API changes
This commit is contained in:
parent
607cd154b8
commit
841252c5f7
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue