mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-11 11:45:30 +00:00
Fix compilation after gst::Pad::sticky_events_foreach
API changes
This commit is contained in:
parent
c46901d150
commit
13923051a0
2 changed files with 4 additions and 2 deletions
|
@ -115,8 +115,9 @@ impl InputSelectorPadSinkHandler {
|
|||
if state.active_sinkpad.as_ref() == Some(pad.gst_pad()) {
|
||||
if inner.send_sticky || state.switched_pad {
|
||||
pad.gst_pad().sticky_events_foreach(|event| {
|
||||
use std::ops::ControlFlow;
|
||||
stickies.push(event.clone());
|
||||
Ok(Some(event))
|
||||
ControlFlow::Continue(gst::EventForeachAction::Keep)
|
||||
});
|
||||
|
||||
inner.send_sticky = false;
|
||||
|
|
|
@ -1262,8 +1262,9 @@ impl UriPlaylistBin {
|
|||
|
||||
// proxy sticky events
|
||||
src.sticky_events_foreach(|event| {
|
||||
use std::ops::ControlFlow;
|
||||
let _ = ghost.store_sticky_event(&event);
|
||||
Ok(Some(event))
|
||||
ControlFlow::Continue(gst::EventForeachAction::Keep)
|
||||
});
|
||||
|
||||
unsafe {
|
||||
|
|
Loading…
Reference in a new issue