Bug 1296531 - Don't notify of queued data after a track ended. r=jesup

This could confuse listeners, since non-direct listeners would see more
data than their direct counterparts.

MozReview-Commit-ID: FC5rukQtrKL

--HG--
extra : rebase_source : e60ad42fe84867c5737d44629a1a5ca60398906c
This commit is contained in:
Andreas Pehrson 2017-05-03 14:15:11 +02:00
Родитель eabd4ccaab
Коммит 5cc68fed94
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -311,6 +311,7 @@ TrackUnionStream::TrackUnionStream()
aInputTrack->GetEnd() <= inputEnd) { aInputTrack->GetEnd() <= inputEnd) {
inputTrackEndPoint = aInputTrack->GetEnd(); inputTrackEndPoint = aInputTrack->GetEnd();
*aOutputTrackFinished = true; *aOutputTrackFinished = true;
break;
} }
if (interval.mStart >= interval.mEnd) { if (interval.mStart >= interval.mEnd) {
@ -322,7 +323,6 @@ TrackUnionStream::TrackUnionStream()
StreamTime outputStart = outputTrack->GetEnd(); StreamTime outputStart = outputTrack->GetEnd();
if (interval.mInputIsBlocked) { if (interval.mInputIsBlocked) {
// Maybe the input track ended?
segment->AppendNullData(ticks); segment->AppendNullData(ticks);
STREAM_LOG(LogLevel::Verbose, ("TrackUnionStream %p appending %lld ticks of null data to track %d", STREAM_LOG(LogLevel::Verbose, ("TrackUnionStream %p appending %lld ticks of null data to track %d",
this, (long long)ticks, outputTrack->GetID())); this, (long long)ticks, outputTrack->GetID()));