зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
b7937eabbd
Коммит
797031e88a
|
@ -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.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче