Bug 1125776: Part8. We don't always need an init segment to be ready. r=mattwoodrow

If abort was called on the source buffer, the parser would have been reset.
The content in the Track Buffer is still valid for playback.
This commit is contained in:
Jean-Yves Avenard 2015-02-04 20:20:16 +11:00
Родитель e2f51fe35f
Коммит a28eaa9992
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -691,7 +691,7 @@ TrackBuffer::IsReady()
{
ReentrantMonitorAutoEnter mon(mParentDecoder->GetReentrantMonitor());
MOZ_ASSERT((mInfo.HasAudio() || mInfo.HasVideo()) || mInitializedDecoders.IsEmpty());
return mParser->HasInitData() && (mInfo.HasAudio() || mInfo.HasVideo());
return mInfo.HasAudio() || mInfo.HasVideo();
}
bool