From 656ec45728f9aef36bcfb58bce61034180d8ba28 Mon Sep 17 00:00:00 2001 From: Jeffrey Tinker Date: Tue, 15 Mar 2011 23:49:31 -0700 Subject: [PATCH] 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 Change-Id: I6d0635e791c0b8537318c47113d533841a1e5555 --- proprietary/wvm/WVMMediaSource.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proprietary/wvm/WVMMediaSource.cpp b/proprietary/wvm/WVMMediaSource.cpp index 66b81836..e74d59e8 100644 --- a/proprietary/wvm/WVMMediaSource.cpp +++ b/proprietary/wvm/WVMMediaSource.cpp @@ -198,6 +198,9 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options) if (result == WV_Status_End_Of_Media) { mediaBuf->release(); return ERROR_END_OF_STREAM; + } else if (result == WV_Status_Terminate_Requested) { + mediaBuf->release(); + return ERROR_NO_LICENSE; } else if (result != WV_Status_OK) { if (result != WV_Status_Warning_Need_Key && result != WV_Status_Warning_Download_Stalled)