Searched refs:stream1 (Results 1 – 1 of 1) sorted by relevance
319 function mergeStreams(stream1, stream2, value) { argument325 if (stream1.length && stream2.length) {326 if (stream1[0].offset != stream2[0].offset)327 return (stream1[0].offset < stream2[0].offset) ? stream1 : stream2;329 return (stream1[0].event == 'start' && stream2[0].event == 'stop') ? stream2 : stream1;331 return stream1.length ? stream1 : stream2;347 while (stream1.length || stream2.length) {