+ if (video_frame.data == nullptr) {
+ // We lost a frame, so we need to invalidate the entire thing.
+ // (CEF only sends OnPaint when there are actual changes,
+ // so we need to do this explicitly, or we could be stuck on an
+ // old frame forever if the image doesn't change.)
+ post_to_cef_ui_thread([this] {
+ browser->GetHost()->Invalidate(PET_VIEW);
+ });
+ ++timecode;
+ } else {