Removing usage of a deprecated error code
A widevine-specific error should not have been defined in frameworks. Submit before https://googleplex-android-review.git.corp.google.com/#/c/338406/ Change-Id: Ie47250ef987a028e09ff553881ac166214244927
This commit is contained in:
@@ -308,7 +308,7 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options)
|
|||||||
if (result >= WV_Status_Min_TP_Error && result <= WV_Status_Max_TP_Error) {
|
if (result >= WV_Status_Min_TP_Error && result <= WV_Status_Max_TP_Error) {
|
||||||
// handle the third party error code range by mapping to a reserved
|
// handle the third party error code range by mapping to a reserved
|
||||||
// vendor defined range of media player error codes
|
// vendor defined range of media player error codes
|
||||||
status = ERROR_DRM_WV_VENDOR_MIN + result - WV_Status_Min_TP_Error;
|
status = ERROR_DRM_VENDOR_MIN + result - WV_Status_Min_TP_Error;
|
||||||
} else {
|
} else {
|
||||||
switch(result) {
|
switch(result) {
|
||||||
case WV_Status_End_Of_Media:
|
case WV_Status_End_Of_Media:
|
||||||
|
|||||||
Reference in New Issue
Block a user