Fix compilation after gst::Pad::sticky_events_foreach API changes

This commit is contained in:
Sebastian Dröge 2021-12-01 15:33:45 +02:00
parent c46901d150
commit 13923051a0
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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 {