Skip to content
Snippets Groups Projects
Commit d729f892 authored by Karl Tomlinson's avatar Karl Tomlinson
Browse files

b=983066 pad out resampler input past track end only to the end of the block r=padenot

The extra null samples were mostly harmless, and may have even helped avoid
bug 983062 sometimes, but caused the "Samples missing" assertion to fail.

--HG--
extra : transplant_source : M%D6%B4ra2%AE%DA%EC%82%E1%D8_%83%9F%FBw%F2%ECh
parent 9394b6fd
No related branches found
No related tags found
No related merge requests found
......@@ -412,7 +412,7 @@ AudioNodeExternalInputStream::ProcessInput(GraphTime aFrom, GraphTime aTo,
std::min(inputTrackEndPoint, inputEndTicks));
}
// Pad if we're looking past the end of the track
segment.AppendNullData(std::max<TrackTicks>(0, inputEndTicks - inputTrackEndPoint));
segment.AppendNullData(ticks - segment.GetDuration());
}
}
......
......@@ -65,6 +65,7 @@ load 933156.html
load 952756.html
load buffer-source-ended-1.html
load offline-buffer-source-ended-1.html
HTTP load media-element-source-seek-1.html
skip-if(B2G) load oscillator-ended-1.html # intermittent B2G timeouts, bug 920338
skip-if(B2G) load oscillator-ended-2.html # intermittent B2G timeouts, bug 920338
test-pref(media.mediasource.enabled,true) load 926665.html
<!DOCTYPE html>
<html class="reftest-wait">
<script>
var audioElement = document.createElement("audio");
audioElement.autoplay = true;
audioElement.src = "sound.ogg";
audioElement.onplaying =
function() {
audioElement.onseeked =
function() {
setTimeout(
function() {
document.documentElement.removeAttribute("class");
}, 100);
};
audioElement.currentTime = 0;
};
var context = new window.AudioContext();
var source = context.createMediaElementSource(audioElement);
source.connect(context.destination);
</script>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment