From 317a49a4c4bf02944d1e01941c6b9f86179044bb Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Tue, 16 Sep 2014 21:32:33 -0700 Subject: mediaplayer: reset flags when pre-reading multiple buffers Bug: 17521470 Change-Id: I15ee9b1d3dd4ad29f4961a642f7fadafd9fe5b24 --- media/libmediaplayerservice/nuplayer/GenericSource.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'media') diff --git a/media/libmediaplayerservice/nuplayer/GenericSource.cpp b/media/libmediaplayerservice/nuplayer/GenericSource.cpp index bd67cbd..3eb87a4 100644 --- a/media/libmediaplayerservice/nuplayer/GenericSource.cpp +++ b/media/libmediaplayerservice/nuplayer/GenericSource.cpp @@ -1256,6 +1256,8 @@ void NuPlayer::GenericSource::readBuffer( sp buffer = mediaBufferToABuffer(mbuf, trackType, actualTimeUs); track->mPackets->queueAccessUnit(buffer); + formatChange = false; + seeking = false; ++numBuffers; } else if (err == WOULD_BLOCK) { break; -- cgit v1.1