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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user