diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index 90fec79bf..ba1c9661d 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -1175,9 +1175,9 @@ impl<'a> Iterator for Iter<'a> { Some((f, v.unwrap())) } - fn last(self) -> Option { + fn last(mut self) -> Option { let structure = self.iter.structure; - let f = self.iter.last()?; + let f = self.iter.next_back()?; let v = structure.value(f); Some((f, v.unwrap())) }