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

Unified Diff: media/tools/player_x11/player_x11.cc

Issue 784493002: Encrypted Media: Rename NeedKey to EncryptedMediaInitData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years 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/formats/webm/webm_stream_parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/player_x11/player_x11.cc
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc
index f0653875c8133a30f57bc18e0b88f601b6ec0a82..c673723281f31cd23deb96cd4a382382a281dff3 100644
--- a/media/tools/player_x11/player_x11.cc
+++ b/media/tools/player_x11/player_x11.cc
@@ -95,8 +95,8 @@ static void OnAddTextTrack(const media::TextTrackConfig& config,
const media::AddTextTrackDoneCB& done_cb) {
}
-static void NeedKey(const std::string& type,
- const std::vector<uint8>& init_data) {
+static void OnEncryptedMediaInitData(const std::string& init_data_type,
+ const std::vector<uint8>& init_data) {
std::cout << "File is encrypted." << std::endl;
}
@@ -281,7 +281,7 @@ int main(int argc, char** argv) {
CreateDataSource(filename), command_line->HasSwitch("streaming")));
scoped_ptr<media::Demuxer> demuxer(new media::FFmpegDemuxer(
media_thread.message_loop_proxy(), data_source.get(),
- base::Bind(&NeedKey), new media::MediaLog()));
+ base::Bind(&OnEncryptedMediaInitData), new media::MediaLog()));
media::Pipeline pipeline(media_thread.message_loop_proxy(),
new media::MediaLog());
« no previous file with comments | « media/formats/webm/webm_stream_parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698