OopVideoDecoderService: Remove unnecessary dereference
This should resolve a crash. The mojo OnVideoFrameDecoded interface
takes an Optional<UnguessableToken> for `release_token. It is safe to
skip dereferencing in the service trampoline because the OOPVideoDecoder
OnVideoFrameDecoded implementation handles an unset `release_token`.
diff --git a/media/mojo/services/oop_video_decoder_service.cc b/media/mojo/services/oop_video_decoder_service.cc
index 86b39aaa..e542d569 100644
--- a/media/mojo/services/oop_video_decoder_service.cc
+++ b/media/mojo/services/oop_video_decoder_service.cc
@@ -269,7 +269,7 @@
CHECK(!frame->HasMappableSharedImage());
video_decoder_client_remote_->OnVideoFrameDecoded(
- std::move(frame), can_read_without_stalling, *release_token);
+ std::move(frame), can_read_without_stalling, release_token);
}
void OOPVideoDecoderService::OnWaiting(WaitingReason reason) {
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
OopVideoDecoderService: Remove unnecessary dereference
This should resolve a crash. The mojo OnVideoFrameDecoded interface
takes an Optional<UnguessableToken> for `release_token`. It is safe to
skip dereferencing in the service trampoline because the OOPVideoDecoder
OnVideoFrameDecoded implementation handles an unset `release_token`.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |