diff options
Diffstat (limited to 'tutorial/tutorial-2.md')
-rw-r--r-- | tutorial/tutorial-2.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/tutorial-2.md b/tutorial/tutorial-2.md index d3615195f..3b633c53e 100644 --- a/tutorial/tutorial-2.md +++ b/tutorial/tutorial-2.md @@ -769,13 +769,13 @@ This querying is done with the `LATENCY` query, which we will have to handle i ```rust fn query(&self, element: &Self::Type, query: &mut gst::QueryRef) -> bool { - use gst::QueryView; + use gst::QueryViewMut; match query.view_mut() { // In Live mode we will have a latency equal to the number of samples in each buffer. // We can't output samples before they were produced, and the last sample of a buffer // is produced that much after the beginning, leading to this latency calculation - QueryView::Latency(ref mut q) => { + QueryViewMut::Latency(q) => { let settings = *self.settings.lock().unwrap(); let state = self.state.lock().unwrap(); |