Fix an intermittent issue with HLS live streaming

An uninitialized return code was causing intermittent
playback failure during Widevine HLS live playback

Change-Id: Ib45176e7f91e2b6ccf0eb4185c6d58d3be0229b4
related-to-bug: 6277231
This commit is contained in:
Jeff Tinker
2012-04-02 22:10:04 -07:00
parent c8a09dfe42
commit ba32a8ddb8
2 changed files with 9 additions and 3 deletions

View File

@@ -345,9 +345,11 @@ status_t WVMMediaSource::read(MediaBuffer **buffer, const ReadOptions *options)
break;
#ifdef REQUIRE_SECURE_BUFFERS
ALOGD("buffer overflow");
mediaBuf->release();
return ERROR_IO;
if (!mIsLiveStream) {
ALOGD("buffer overflow");
mediaBuf->release();
return ERROR_IO;
}
#endif
//ALOGD("Resizing...");