tsmux: Deterministically order PAT and PMT entries
- Refactoring:
-
Replace
streams
GArray
withGPtrArray
This is more appropriate. -
Remove
program_array_index
It's only used for removal. Let's just scan the array.
-
Replace
- Default ordering:
- Deterministically order PAT programs by number
- Deterministically order program streams by PID
- Custom ordering:
-
Allow specifying PMT order via the
prog-map
Look for an entryPMT_<PID>
in theprog-map
, which specifies the relative index of the stream in the PMT.
-
Allow specifying PMT order via the