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

Unified Diff: content/renderer/pepper/content_decryptor_delegate.cc

Issue 208653009: Encrypted media: avoid resetting video state on audio deinit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 6ae3753f Initial. Created 6 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/content_decryptor_delegate.cc
diff --git a/content/renderer/pepper/content_decryptor_delegate.cc b/content/renderer/pepper/content_decryptor_delegate.cc
index 53ff21b0082a75d7caed1096c201290220aa10c8..02dee8a6e20bd792877a90fbfc24762725b7e80f 100644
--- a/content/renderer/pepper/content_decryptor_delegate.cc
+++ b/content/renderer/pepper/content_decryptor_delegate.cc
@@ -471,7 +471,8 @@ bool ContentDecryptorDelegate::DeinitializeDecoder(
Decryptor::StreamType stream_type) {
CancelDecode(stream_type);
- natural_size_ = gfx::Size();
+ if (stream_type == Decryptor::kVideo)
+ natural_size_ = gfx::Size();
// TODO(tomfinegan): Add decoder deinitialize request tracking, and get
// stream type from media stack.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698