Loading media/libstagefright/httplive/PlaylistFetcher.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -1082,6 +1082,16 @@ bool PlaylistFetcher::initDownloadState( mSeqNumber, firstSeqNumberInPlaylist, firstSeqNumberInPlaylist + (int32_t)mPlaylist->size() - 1); if (mTSParser != NULL) { mTSParser->signalEOS(ERROR_END_OF_STREAM); // Use an empty buffer; we don't have any new data, just want to extract // potential new access units after flush. Reset mSeqNumber to // lastSeqNumberInPlaylist such that we set the correct access unit // properties in extractAndQueueAccessUnitsFromTs. sp<ABuffer> buffer = new ABuffer(0); mSeqNumber = lastSeqNumberInPlaylist; extractAndQueueAccessUnitsFromTs(buffer); } notifyError(ERROR_END_OF_STREAM); } else { // It's possible that we were never able to download the playlist. Loading media/libstagefright/mpeg2ts/ATSParser.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -746,6 +746,7 @@ void ATSParser::Stream::signalDiscontinuity( } mPayloadStarted = false; mEOSReached = false; mBuffer->setRange(0, 0); bool clearFormat = false; Loading media/libstagefright/mpeg2ts/ESQueue.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ void ElementaryStreamQueue::clear(bool clearFormat) { if (clearFormat) { mFormat.clear(); } mEOSReached = false; } // Parse AC3 header assuming the current ptr is start position of syncframe, Loading Loading
media/libstagefright/httplive/PlaylistFetcher.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -1082,6 +1082,16 @@ bool PlaylistFetcher::initDownloadState( mSeqNumber, firstSeqNumberInPlaylist, firstSeqNumberInPlaylist + (int32_t)mPlaylist->size() - 1); if (mTSParser != NULL) { mTSParser->signalEOS(ERROR_END_OF_STREAM); // Use an empty buffer; we don't have any new data, just want to extract // potential new access units after flush. Reset mSeqNumber to // lastSeqNumberInPlaylist such that we set the correct access unit // properties in extractAndQueueAccessUnitsFromTs. sp<ABuffer> buffer = new ABuffer(0); mSeqNumber = lastSeqNumberInPlaylist; extractAndQueueAccessUnitsFromTs(buffer); } notifyError(ERROR_END_OF_STREAM); } else { // It's possible that we were never able to download the playlist. Loading
media/libstagefright/mpeg2ts/ATSParser.cpp +1 −0 Original line number Diff line number Diff line Loading @@ -746,6 +746,7 @@ void ATSParser::Stream::signalDiscontinuity( } mPayloadStarted = false; mEOSReached = false; mBuffer->setRange(0, 0); bool clearFormat = false; Loading
media/libstagefright/mpeg2ts/ESQueue.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ void ElementaryStreamQueue::clear(bool clearFormat) { if (clearFormat) { mFormat.clear(); } mEOSReached = false; } // Parse AC3 header assuming the current ptr is start position of syncframe, Loading