am 176a13e8: Merge "Fix for HLS live streaming" into ics-mr1

* commit '176a13e8ccdaad196c1f738e89bdcbfc0fc90c80':
  Fix for HLS live streaming
This commit is contained in:
Jeff Tinker
2012-04-09 23:00:57 -07:00
committed by Android Git Automerger

View File

@@ -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);
}