From ce5b9f777d2c460a6387226877f89037b45e2768 Mon Sep 17 00:00:00 2001 From: Jeff Tinker Date: Thu, 5 Apr 2012 11:53:38 -0700 Subject: [PATCH] Fix for HLS live streaming An uninitialized return code was causing intermittent playback failure during Widevine HLS live playback. This change supports vendors doing Widevine integration on their devices from the ICS code base. It has been confirmed to resolve the HLS streaming issue by 3 vendors. Change-Id: Ib5bd1aa92f577a0e759e11cb154359686943a903 related-to-bug: 6277231 --- proprietary/wvm/WVMExtractorImpl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proprietary/wvm/WVMExtractorImpl.cpp b/proprietary/wvm/WVMExtractorImpl.cpp index 8b27adc3..bc3aa00c 100644 --- a/proprietary/wvm/WVMExtractorImpl.cpp +++ b/proprietary/wvm/WVMExtractorImpl.cpp @@ -442,6 +442,10 @@ int64_t WVMExtractorImpl::getCachedDurationUs(status_t *finalStatus) { } else if (status != WV_Status_OK) { *finalStatus = ERROR_IO; } else { + if (mIsLiveStream) + *finalStatus = ERROR_END_OF_STREAM; + else + *finalStatus = OK; durationUs = (uint64_t)(secondsBuffered * 1000000LL); }