Move OEMCrypto_Initialize earlier
Some OEMCrypto calls are happening before OEMCrypto_Initialize. This change moves initialization earlier so it occurs before any other calls to OEMCrypto. bug: 10582250 Change-Id: Ic8992e8f0738dbfeb10074a4e1543bb9931a49d5
This commit is contained in:
@@ -76,7 +76,7 @@ private:
|
||||
bool mHaveMetaData;
|
||||
bool mUseAdaptiveStreaming;
|
||||
bool mIsLiveStream;
|
||||
bool mAdaptivePrefetching;
|
||||
bool mCryptoInitialized;
|
||||
|
||||
WVSession *mSession;
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ class WVMMediaSource : public MediaSource {
|
||||
public:
|
||||
WVMMediaSource(WVSession *session, WVEsSelector esSelector,
|
||||
const sp<MetaData> &metaData, bool isLive,
|
||||
bool cryptoPluginMode);
|
||||
bool cryptoPluginMode, bool cryptoInitialized);
|
||||
|
||||
void delegateFileSource(sp<WVMFileSource> fileSource);
|
||||
void delegateDataSource(sp<DataSource> dataSource);
|
||||
|
||||
Reference in New Issue
Block a user