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

Unified Diff: media/base/android/media_codec_video_decoder.cc

Issue 1372203002: Throttle media decoding after excessive Android media server crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
Index: media/base/android/media_codec_video_decoder.cc
diff --git a/media/base/android/media_codec_video_decoder.cc b/media/base/android/media_codec_video_decoder.cc
index 48b278ad137ca961fdcb415cdf948ee5e7dda29b..3942c5402f7eefd26778f2f3b383789998b0d8f0 100644
--- a/media/base/android/media_codec_video_decoder.cc
+++ b/media/base/android/media_codec_video_decoder.cc
@@ -24,8 +24,7 @@ MediaCodecVideoDecoder::MediaCodecVideoDecoder(
const base::Closure& stop_done_cb,
const base::Closure& error_cb,
const SetTimeCallback& update_current_time_cb,
- const VideoSizeChangedCallback& video_size_changed_cb,
- const base::Closure& codec_created_cb)
+ const VideoSizeChangedCallback& video_size_changed_cb)
: MediaCodecDecoder(media_task_runner,
request_data_cb,
starvation_cb,
@@ -34,8 +33,7 @@ MediaCodecVideoDecoder::MediaCodecVideoDecoder(
error_cb,
"VideoDecoder"),
update_current_time_cb_(update_current_time_cb),
- video_size_changed_cb_(video_size_changed_cb),
- codec_created_cb_(codec_created_cb) {
+ video_size_changed_cb_(video_size_changed_cb) {
}
MediaCodecVideoDecoder::~MediaCodecVideoDecoder() {
@@ -166,8 +164,6 @@ MediaCodecDecoder::ConfigStatus MediaCodecVideoDecoder::ConfigureInternal() {
DVLOG(0) << class_name() << "::" << __FUNCTION__ << " succeeded";
- media_task_runner_->PostTask(FROM_HERE, codec_created_cb_);
-
if (!codec_created_for_tests_cb_.is_null())
media_task_runner_->PostTask(FROM_HERE, codec_created_for_tests_cb_);

Powered by Google App Engine
This is Rietveld 408576698