From c282f34c741bd57074d761196a21b2cbb25b454a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 11 May 2019 15:43:32 +0200 Subject: [PATCH] bus: Fix naming for filtered pop functions --- gstreamer/src/bus.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gstreamer/src/bus.rs b/gstreamer/src/bus.rs index bee000460..444b41f39 100644 --- a/gstreamer/src/bus.rs +++ b/gstreamer/src/bus.rs @@ -198,7 +198,11 @@ impl Bus { .filter(move |msg| msg_types.contains(&msg.get_type())) } - pub fn pop_filtered(&self, timeout: ::ClockTime, msg_types: &[MessageType]) -> Option { + pub fn timed_pop_filtered( + &self, + timeout: ::ClockTime, + msg_types: &[MessageType], + ) -> Option { loop { let msg = self.timed_pop(timeout)?; if msg_types.contains(&msg.get_type()) { @@ -207,7 +211,7 @@ impl Bus { } } - pub fn timed_pop_filtered(&self, msg_types: &[MessageType]) -> Option { + pub fn pop_filtered(&self, msg_types: &[MessageType]) -> Option { loop { let msg = self.pop()?; if msg_types.contains(&msg.get_type()) {