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

Unified Diff: media/gpu/android_video_decode_accelerator.cc

Issue 2114473002: Remove usage of MediaCodec.getName(), use proxy instead. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/gpu/android_video_decode_accelerator.cc
diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
index 5ea83cddfb82881f91be152e45eed77b0bfb1082..e5f72b127e495a0a486d753755ff4be1b92430d1 100644
--- a/media/gpu/android_video_decode_accelerator.cc
+++ b/media/gpu/android_video_decode_accelerator.cc
@@ -1416,12 +1416,8 @@ void AndroidVideoDecodeAccelerator::ActualDestroy() {
// backed by hardware, else it may hang too. Post it to the construction
// thread, and it'll get freed if things start working. If things are
// already working, then it'll be freed soon.
- if (media_codec_->IsSoftwareCodec()) {
- media_codec_.reset();
- } else {
- manager->ConstructionTaskRunner()->DeleteSoon(FROM_HERE,
- media_codec_.release());
- }
+ manager->ConstructionTaskRunner()->DeleteSoon(FROM_HERE,
+ media_codec_.release());
}
delete this;
}

Powered by Google App Engine
This is Rietveld 408576698