Skip to content

fix: ordering of cea606 data

Vinay Rosenberg requested to merge github/fork/bafolts/fix-cea-608 into development

Created by: bafolts

The insertInOrder method fails to insert the CC packets in order and causes issue with CEA-608 caption dispaly. A simpler sort method can be used after the data is found to sort the data.

var a = []

insertInOrder(a, 1, [1]);
insertInOrder(a, 2, [2]);
insertInOrder(a, 3, [3]);
insertInOrder(a, 2.5, [2.5]);
insertInOrder(a, 2, [2]);

console.log(a);

the following quick test exposes the issues with insertInOrder.

Merge request reports