diff --git a/video/closedcaption/src/cea708mux/imp.rs b/video/closedcaption/src/cea708mux/imp.rs index 7da7c738d..9591a4ea2 100644 --- a/video/closedcaption/src/cea708mux/imp.rs +++ b/video/closedcaption/src/cea708mux/imp.rs @@ -532,9 +532,10 @@ impl AggregatorImpl for Cea708Mux { return Some(buffer); }; let segment = aggregator_pad.segment(); + segment .downcast_ref::() - .map(|segment| segment.clip(pts, pts)) + .and_then(|segment| segment.clip(pts, pts)) .map(|_| buffer) } }