Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: media/mojo/clients/mojo_video_decoder.cc

Issue 2408063009: media: Use native DecodeStatus in media mojo interfaces (Closed)
Patch Set: comments addressed Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/clients/mojo_video_decoder.h ('k') | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/clients/mojo_video_decoder.cc
diff --git a/media/mojo/clients/mojo_video_decoder.cc b/media/mojo/clients/mojo_video_decoder.cc
index 3eb07a770dd586489594adce62c7f030dd565b04..ee293e6471ae67dcc86671e9a25b07f4e21dfe30 100644
--- a/media/mojo/clients/mojo_video_decoder.cc
+++ b/media/mojo/clients/mojo_video_decoder.cc
@@ -102,10 +102,10 @@ void MojoVideoDecoder::OnVideoFrameDecoded(mojom::VideoFramePtr frame) {
output_cb_.Run(frame.To<scoped_refptr<VideoFrame>>());
}
-void MojoVideoDecoder::OnDecodeDone(mojom::DecodeStatus status) {
+void MojoVideoDecoder::OnDecodeDone(DecodeStatus status) {
DVLOG(1) << __FUNCTION__;
DCHECK(task_runner_->BelongsToCurrentThread());
- base::ResetAndReturn(&decode_cb_).Run(static_cast<DecodeStatus>(status));
+ base::ResetAndReturn(&decode_cb_).Run(status);
}
void MojoVideoDecoder::Reset(const base::Closure& reset_cb) {
« no previous file with comments | « media/mojo/clients/mojo_video_decoder.h ('k') | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698