Bug 1185972: P3. Don't reduce our buffer threshold coming out of dormant mode. r=jwwang

Each time we would come out of dormant mode, the buffer threshold for audio-only stream would be reduced.
This commit is contained in:
Jean-Yves Avenard 2015-07-25 18:28:14 +10:00
Родитель b7937eabbd
Коммит 797031e88a
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2072,7 +2072,7 @@ MediaDecoderStateMachine::FinishDecodeFirstFrame()
"transportSeekable=%d, mediaSeekable=%d", "transportSeekable=%d, mediaSeekable=%d",
Duration().ToMicroseconds(), mDecoder->IsTransportSeekable(), mDecoder->IsMediaSeekable()); Duration().ToMicroseconds(), mDecoder->IsTransportSeekable(), mDecoder->IsMediaSeekable());
if (HasAudio() && !HasVideo()) { if (HasAudio() && !HasVideo() && !mSentFirstFrameLoadedEvent) {
// We're playing audio only. We don't need to worry about slow video // We're playing audio only. We don't need to worry about slow video
// decodes causing audio underruns, so don't buffer so much audio in // decodes causing audio underruns, so don't buffer so much audio in
// order to reduce memory usage. // order to reduce memory usage.