Loading media/libmediaplayerservice/nuplayer/NuPlayer.cpp +8 −7 Original line number Original line Diff line number Diff line Loading @@ -1230,7 +1230,6 @@ status_t NuPlayer::feedDecoderInputData(bool audio, const sp<AMessage> &msg) { mTimeDiscontinuityPending = mTimeDiscontinuityPending = mTimeDiscontinuityPending || timeChange; mTimeDiscontinuityPending || timeChange; if (formatChange || timeChange) { if (mFlushingAudio == NONE && mFlushingVideo == NONE) { if (mFlushingAudio == NONE && mFlushingVideo == NONE) { // And we'll resume scanning sources once we're done // And we'll resume scanning sources once we're done // flushing. // flushing. Loading @@ -1239,6 +1238,8 @@ status_t NuPlayer::feedDecoderInputData(bool audio, const sp<AMessage> &msg) { &NuPlayer::performScanSources)); &NuPlayer::performScanSources)); } } if (formatChange || timeChange) { sp<AMessage> newFormat = mSource->getFormat(audio); sp<AMessage> newFormat = mSource->getFormat(audio); sp<Decoder> &decoder = audio ? mAudioDecoder : mVideoDecoder; sp<Decoder> &decoder = audio ? mAudioDecoder : mVideoDecoder; if (formatChange && !decoder->supportsSeamlessFormatChange(newFormat)) { if (formatChange && !decoder->supportsSeamlessFormatChange(newFormat)) { Loading Loading
media/libmediaplayerservice/nuplayer/NuPlayer.cpp +8 −7 Original line number Original line Diff line number Diff line Loading @@ -1230,7 +1230,6 @@ status_t NuPlayer::feedDecoderInputData(bool audio, const sp<AMessage> &msg) { mTimeDiscontinuityPending = mTimeDiscontinuityPending = mTimeDiscontinuityPending || timeChange; mTimeDiscontinuityPending || timeChange; if (formatChange || timeChange) { if (mFlushingAudio == NONE && mFlushingVideo == NONE) { if (mFlushingAudio == NONE && mFlushingVideo == NONE) { // And we'll resume scanning sources once we're done // And we'll resume scanning sources once we're done // flushing. // flushing. Loading @@ -1239,6 +1238,8 @@ status_t NuPlayer::feedDecoderInputData(bool audio, const sp<AMessage> &msg) { &NuPlayer::performScanSources)); &NuPlayer::performScanSources)); } } if (formatChange || timeChange) { sp<AMessage> newFormat = mSource->getFormat(audio); sp<AMessage> newFormat = mSource->getFormat(audio); sp<Decoder> &decoder = audio ? mAudioDecoder : mVideoDecoder; sp<Decoder> &decoder = audio ? mAudioDecoder : mVideoDecoder; if (formatChange && !decoder->supportsSeamlessFormatChange(newFormat)) { if (formatChange && !decoder->supportsSeamlessFormatChange(newFormat)) { Loading