Merge "Fix for b/3504638 wv - when the Widevine client receives a stop play response from the heartbeat need an error event to pass to app" into honeycomb-mr1
This commit is contained in:
committed by
Android (Google) Code Review
commit
1dd666966d
@@ -198,6 +198,9 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options)
|
|||||||
if (result == WV_Status_End_Of_Media) {
|
if (result == WV_Status_End_Of_Media) {
|
||||||
mediaBuf->release();
|
mediaBuf->release();
|
||||||
return ERROR_END_OF_STREAM;
|
return ERROR_END_OF_STREAM;
|
||||||
|
} else if (result == WV_Status_Terminate_Requested) {
|
||||||
|
mediaBuf->release();
|
||||||
|
return ERROR_NO_LICENSE;
|
||||||
} else if (result != WV_Status_OK) {
|
} else if (result != WV_Status_OK) {
|
||||||
if (result != WV_Status_Warning_Need_Key &&
|
if (result != WV_Status_Warning_Need_Key &&
|
||||||
result != WV_Status_Warning_Download_Stalled)
|
result != WV_Status_Warning_Download_Stalled)
|
||||||
|
|||||||
Reference in New Issue
Block a user