diff --git a/proprietary/wvm/WVMMediaSource.cpp b/proprietary/wvm/WVMMediaSource.cpp index dda121af..6497f7f8 100644 --- a/proprietary/wvm/WVMMediaSource.cpp +++ b/proprietary/wvm/WVMMediaSource.cpp @@ -322,6 +322,12 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options) return status; } +#ifdef REQUIRE_SECURE_BUFFERS + if (mESSelector == WV_EsSelector_Video) { + bytesRead = sDecryptContext[mESSelector].mOffset; + } +#endif + if (bytesRead == 0) { if (retryCount++ >= retryLimit) { // If no data received within the retry limit, return ERROR_IO