basetsmux: Support for caps changes
Copied from https://gitlab.freedesktop.org//gstreamer/gst-plugins-bad/-/merge_requests/1788
For instance, changing the incoming audio rate (AAC) from 48000 to 44100 will try to play back 44100Hz audio with a 48000 rate, resulting in higher frequency and gaps.