diff options
Diffstat (limited to 'video/closedcaption/src/scc_parse/imp.rs')
-rw-r--r-- | video/closedcaption/src/scc_parse/imp.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/video/closedcaption/src/scc_parse/imp.rs b/video/closedcaption/src/scc_parse/imp.rs index d1421bce7..5163e0151 100644 --- a/video/closedcaption/src/scc_parse/imp.rs +++ b/video/closedcaption/src/scc_parse/imp.rs @@ -820,7 +820,7 @@ impl SccParse { fn perform_seek( &self, - event: &gst::event::Seek<&gst::EventRef>, + event: &gst::event::Seek<gst::EventRef>, element: &super::SccParse, ) -> bool { if self.state.lock().unwrap().pull.is_none() { @@ -920,7 +920,7 @@ impl SccParse { gst_log!(CAT, obj: pad, "Handling event {:?}", event); match event.view() { - EventView::Seek(e) => self.perform_seek(&e, element), + EventView::Seek(e) => self.perform_seek(e, element), _ => pad.event_default(Some(element), event), } } @@ -931,12 +931,12 @@ impl SccParse { element: &super::SccParse, query: &mut gst::QueryRef, ) -> bool { - use gst::QueryView; + use gst::QueryViewMut; gst_log!(CAT, obj: pad, "Handling query {:?}", query); match query.view_mut() { - QueryView::Seeking(mut q) => { + QueryViewMut::Seeking(q) => { let state = self.state.lock().unwrap(); let fmt = q.format(); @@ -956,7 +956,7 @@ impl SccParse { false } } - QueryView::Position(ref mut q) => { + QueryViewMut::Position(q) => { // For Time answer ourselfs, otherwise forward if q.format() == gst::Format::Time { let state = self.state.lock().unwrap(); @@ -966,7 +966,7 @@ impl SccParse { self.sinkpad.peer_query(query) } } - QueryView::Duration(ref mut q) => { + QueryViewMut::Duration(q) => { // For Time answer ourselfs, otherwise forward let state = self.state.lock().unwrap(); if q.format() == gst::Format::Time { |