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:
Diffstat (limited to 'tutorial/src/sinesrc/imp.rs')
-rw-r--r--tutorial/src/sinesrc/imp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tutorial/src/sinesrc/imp.rs b/tutorial/src/sinesrc/imp.rs
index 91c5da60e..377cd5c31 100644
--- a/tutorial/src/sinesrc/imp.rs
+++ b/tutorial/src/sinesrc/imp.rs
@@ -488,13 +488,13 @@ impl BaseSrcImpl for SineSrc {
}
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();