Stop inferring optionally wrapped type
The previous implementation did not work with downstream stdlib.
Tested: Yes, manually.
Bug: b/423646186
Change-Id: I5aef7e3b3bf23559f3b79ec364ed49d8ca5a96bf
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/418041
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Rasmus Brandt <brandtr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45967}
diff --git a/video/timing/simulator/rendering_tracker.cc b/video/timing/simulator/rendering_tracker.cc
index 20c4fe0..4a6cf58 100644
--- a/video/timing/simulator/rendering_tracker.cc
+++ b/video/timing/simulator/rendering_tracker.cc
@@ -126,9 +126,9 @@
// This check is currently true by construction, but it could change in
// the future.
RTC_DCHECK(vsbc_decodable_stats_.has_value());
-
VideoStreamBufferControllerObserverDecodableStats vsbc_decodable_stats =
- vsbc_decodable_stats_.value_or({});
+ vsbc_decodable_stats_.value_or(
+ VideoStreamBufferControllerObserverDecodableStats());
observer_.OnDecodedFrame(*encoded_frame, vsbc_frames_dropped_.value_or(0),
vsbc_decodable_stats.jitter_buffer_minimum_delay,
vsbc_decodable_stats.jitter_buffer_target_delay,