diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-06-25 19:49:07 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-06-25 19:49:07 +0300 |
commit | f62c11f851d357b131d5246153724d616bfc3451 (patch) | |
tree | 9904ca49deb4277fd855cfeef22f560166cde5be /utils | |
parent | 392bfc0b1e67ec207c0de6a7298e6b735752dcba (diff) |
Update for functions returning a Builder being renamed to builder() instead of new()
And new video event APIs.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/src/fallbacksrc.rs | 4 | ||||
-rw-r--r-- | utils/fallbackswitch/src/fallbackswitch.rs | 4 | ||||
-rw-r--r-- | utils/togglerecord/src/togglerecord.rs | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/utils/fallbackswitch/src/fallbacksrc.rs b/utils/fallbackswitch/src/fallbacksrc.rs index 723c3857d..5ae3c2979 100644 --- a/utils/fallbackswitch/src/fallbacksrc.rs +++ b/utils/fallbackswitch/src/fallbacksrc.rs @@ -2293,7 +2293,9 @@ mod custom_source { .iter() .map(|p| p.stream.clone()) .collect::<Vec<_>>(); - let collection = gst::StreamCollection::new(None).streams(&streams).build(); + let collection = gst::StreamCollection::builder(None) + .streams(&streams) + .build(); drop(state); element.no_more_pads(); diff --git a/utils/fallbackswitch/src/fallbackswitch.rs b/utils/fallbackswitch/src/fallbackswitch.rs index adfb51df8..47ca1055b 100644 --- a/utils/fallbackswitch/src/fallbackswitch.rs +++ b/utils/fallbackswitch/src/fallbackswitch.rs @@ -158,7 +158,7 @@ impl FallbackSwitch { "Can't change back to sinkpad, waiting for keyframe" ); self.sinkpad.push_event( - gst_video::new_upstream_force_key_unit_event() + gst_video::UpstreamForceKeyUnitEvent::builder() .all_headers(true) .build(), ); @@ -284,7 +284,7 @@ impl FallbackSwitch { "Can't change to fallback sinkpad yet, waiting for keyframe" ); fallback_sinkpad.push_event( - gst_video::new_upstream_force_key_unit_event() + gst_video::UpstreamForceKeyUnitEvent::builder() .all_headers(true) .build(), ); diff --git a/utils/togglerecord/src/togglerecord.rs b/utils/togglerecord/src/togglerecord.rs index a003913c7..16d540518 100644 --- a/utils/togglerecord/src/togglerecord.rs +++ b/utils/togglerecord/src/togglerecord.rs @@ -462,7 +462,7 @@ impl ToggleRecord { gst_debug!(CAT, obj: pad, "Requesting a new keyframe"); stream .sinkpad - .push_event(gst_video::new_upstream_force_key_unit_event().build()); + .push_event(gst_video::UpstreamForceKeyUnitEvent::builder().build()); } return Ok(HandleResult::Pass(data)); @@ -538,7 +538,7 @@ impl ToggleRecord { gst_debug!(CAT, obj: pad, "Requesting a new keyframe"); stream .sinkpad - .push_event(gst_video::new_upstream_force_key_unit_event().build()); + .push_event(gst_video::UpstreamForceKeyUnitEvent::builder().build()); } return Ok(HandleResult::Drop); |