commit | 2514d080c8a54ff603a45d7e336de668fe7329db | [log] [tgz] |
---|---|---|
author | Jeff Tinker <jtinker@google.com> | Mon Nov 03 13:29:35 2014 -0800 |
committer | Jeff Tinker <jtinker@google.com> | Mon Nov 03 18:39:23 2014 -0800 |
tree | c02e8521f99240935f7c672c9d79846addd785cb | |
parent | 3c1285e8f86bd497e14c14fb6df7b42072ef52bd [diff] [blame] |
Pass resolution to Crypto plugin on format change Change-Id: I56cd557ce3525fe625db8c312d2557d3c8b51101 related-to-bug: 16034599
diff --git a/media/libmediaplayerservice/Crypto.cpp b/media/libmediaplayerservice/Crypto.cpp index 62593b2..8ee7c0b 100644 --- a/media/libmediaplayerservice/Crypto.cpp +++ b/media/libmediaplayerservice/Crypto.cpp
@@ -257,4 +257,12 @@ errorDetailMsg); } +void Crypto::notifyResolution(uint32_t width, uint32_t height) { + Mutex::Autolock autoLock(mLock); + + if (mInitCheck == OK && mPlugin != NULL) { + mPlugin->notifyResolution(width, height); + } +} + } // namespace android