script: Dirty video element when clearing video frame data. (#34435)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
This commit is contained in:
Josh Matthews 2024-11-30 09:13:34 -05:00 committed by GitHub
parent 82bbff45b3
commit 3b5ffabbca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1985,7 +1985,8 @@ impl HTMLMediaElement {
pub fn clear_current_frame_data(&self) {
self.handle_resize(None, None);
self.video_renderer.lock().unwrap().current_frame = None
self.video_renderer.lock().unwrap().current_frame = None;
self.upcast::<Node>().dirty(NodeDamage::OtherNodeDamage);
}
fn handle_resize(&self, width: Option<u32>, height: Option<u32>) {