mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-26 11:31:06 +00:00
bus: Fix naming for filtered pop functions
This commit is contained in:
parent
1a65c674a9
commit
c282f34c74
1 changed files with 6 additions and 2 deletions
|
@ -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<Message> {
|
||||
pub fn timed_pop_filtered(
|
||||
&self,
|
||||
timeout: ::ClockTime,
|
||||
msg_types: &[MessageType],
|
||||
) -> Option<Message> {
|
||||
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<Message> {
|
||||
pub fn pop_filtered(&self, msg_types: &[MessageType]) -> Option<Message> {
|
||||
loop {
|
||||
let msg = self.pop()?;
|
||||
if msg_types.contains(&msg.get_type()) {
|
||||
|
|
Loading…
Reference in a new issue