Bug 1179547 - release decoders when tests finish as well as cubeb streams to reduce the number of concurrent cubeb streams and the chance of OpenCubeb() errors. r=kinetik.

This commit is contained in:
JW Wang 2015-09-01 12:02:55 +08:00
Родитель 16cd50266e
Коммит dac9a4cb51
1 изменённых файлов: 2 добавлений и 4 удалений

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

@ -11,7 +11,7 @@
<body>
<pre id="test">
<script class="testbody" type="text/javascript">
PARALLEL_TESTS = 1;
var manager = new MediaTestManager;
// Fragment parameters to try. These tests
@ -78,9 +78,7 @@ function startTest(test, token) {
ok(a, name + ": " + msg);
}}(name);
var localFinish = function(v, manager) { return function() {
if (v.parentNode) {
v.parentNode.removeChild(v);
}
removeNodeAndSource(v);
manager.finished(v.token);
}}(v, manager);
window['test_fragment_play'](v, test.start, test.end, localIs, localOk, localFinish);