diff --git a/gstreamer-pbutils/src/discoverer_stream_info.rs b/gstreamer-pbutils/src/discoverer_stream_info.rs index 94705dab3..ec41271fe 100644 --- a/gstreamer-pbutils/src/discoverer_stream_info.rs +++ b/gstreamer-pbutils/src/discoverer_stream_info.rs @@ -10,12 +10,12 @@ use DiscovererStreamInfo; use DiscovererStreamInfoExt; -pub struct DiscovererStreamInfoIter { +pub struct Iter { stream_info: Option, direction_forward: bool } -impl Iterator for DiscovererStreamInfoIter { +impl Iterator for Iter { type Item = DiscovererStreamInfo; fn next(&mut self) -> Option { @@ -36,15 +36,15 @@ impl Iterator for DiscovererStreamInfoIter { } impl DiscovererStreamInfo { - pub fn next_iter(&self) -> DiscovererStreamInfoIter { - DiscovererStreamInfoIter { + pub fn next_iter(&self) -> Iter { + Iter { stream_info: self.get_next(), direction_forward: true } } - pub fn previous_iter(&self) -> DiscovererStreamInfoIter { - DiscovererStreamInfoIter { + pub fn previous_iter(&self) -> Iter { + Iter { stream_info: self.get_previous(), direction_forward: false } diff --git a/gstreamer-pbutils/src/lib.rs b/gstreamer-pbutils/src/lib.rs index b90245cad..778e64ba2 100644 --- a/gstreamer-pbutils/src/lib.rs +++ b/gstreamer-pbutils/src/lib.rs @@ -56,8 +56,7 @@ pub use auto::*; mod discoverer; pub use discoverer::*; -mod discoverer_stream_info; -pub use discoverer_stream_info::*; +pub mod discoverer_stream_info; mod discoverer_video_info; pub use discoverer_video_info::*;