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

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

Issue 2425663003: media: Use native CDM enum types 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_cdm.cc ('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_decryptor.cc
diff --git a/media/mojo/clients/mojo_decryptor.cc b/media/mojo/clients/mojo_decryptor.cc
index 74ce2d238d199e6f4b2fbf54d98a98ccf8cbe80d..53a574c3fb33632cb5cb7f0198b17784a482700a 100644
--- a/media/mojo/clients/mojo_decryptor.cc
+++ b/media/mojo/clients/mojo_decryptor.cc
@@ -176,7 +176,7 @@ void MojoDecryptor::OnBufferDecrypted(const DecryptCB& decrypt_cb,
DCHECK(thread_checker_.CalledOnValidThread());
if (buffer.is_null()) {
- decrypt_cb.Run(static_cast<Decryptor::Status>(status), nullptr);
+ decrypt_cb.Run(status, nullptr);
return;
}
@@ -187,7 +187,7 @@ void MojoDecryptor::OnBufferDecrypted(const DecryptCB& decrypt_cb,
return;
}
- decrypt_cb.Run(static_cast<Decryptor::Status>(status), media_buffer);
+ decrypt_cb.Run(status, media_buffer);
}
void MojoDecryptor::OnAudioDecoded(
@@ -202,7 +202,7 @@ void MojoDecryptor::OnAudioDecoded(
for (size_t i = 0; i < audio_buffers.size(); ++i)
audio_frames.push_back(audio_buffers[i].To<scoped_refptr<AudioBuffer>>());
- audio_decode_cb.Run(static_cast<Decryptor::Status>(status), audio_frames);
+ audio_decode_cb.Run(status, audio_frames);
}
void MojoDecryptor::OnVideoDecoded(const VideoDecodeCB& video_decode_cb,
@@ -213,7 +213,7 @@ void MojoDecryptor::OnVideoDecoded(const VideoDecodeCB& video_decode_cb,
DCHECK(thread_checker_.CalledOnValidThread());
if (video_frame.is_null()) {
- video_decode_cb.Run(static_cast<Decryptor::Status>(status), nullptr);
+ video_decode_cb.Run(status, nullptr);
return;
}
@@ -228,7 +228,7 @@ void MojoDecryptor::OnVideoDecoded(const VideoDecodeCB& video_decode_cb,
&MojoDecryptor::ReleaseSharedBuffer, weak_factory_.GetWeakPtr()));
}
- video_decode_cb.Run(static_cast<Decryptor::Status>(status), frame);
+ video_decode_cb.Run(status, frame);
}
void MojoDecryptor::ReleaseSharedBuffer(mojo::ScopedSharedBufferHandle buffer,
« no previous file with comments | « media/mojo/clients/mojo_cdm.cc ('k') | media/mojo/common/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698