tsdemux, tsparse: rework segment handling and seek handling
Some fixes I've had hanging around too long that rewrote tsdemux/tsparse segment handling and seek handling. Primarily refactoring prep for the instant-rate change branch with some small behavioural fixes around seeking and position queries.
Edited by Tim-Philipp Müller