mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-09-28 06:42:07 +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 state.active_sinkpad.as_ref() == Some(pad.gst_pad()) {
|
||||||
if inner.send_sticky || state.switched_pad {
|
if inner.send_sticky || state.switched_pad {
|
||||||
pad.gst_pad().sticky_events_foreach(|event| {
|
pad.gst_pad().sticky_events_foreach(|event| {
|
||||||
|
use std::ops::ControlFlow;
|
||||||
stickies.push(event.clone());
|
stickies.push(event.clone());
|
||||||
Ok(Some(event))
|
ControlFlow::Continue(gst::EventForeachAction::Keep)
|
||||||
});
|
});
|
||||||
|
|
||||||
inner.send_sticky = false;
|
inner.send_sticky = false;
|
||||||
|
|
|
@ -1262,8 +1262,9 @@ impl UriPlaylistBin {
|
||||||
|
|
||||||
// proxy sticky events
|
// proxy sticky events
|
||||||
src.sticky_events_foreach(|event| {
|
src.sticky_events_foreach(|event| {
|
||||||
|
use std::ops::ControlFlow;
|
||||||
let _ = ghost.store_sticky_event(&event);
|
let _ = ghost.store_sticky_event(&event);
|
||||||
Ok(Some(event))
|
ControlFlow::Continue(gst::EventForeachAction::Keep)
|
||||||
});
|
});
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Reference in a new issue