No tear down between periods
Created by: aescarcha
This PR introduces buffer reuse for compatible codecs and preload of next periods to avoid jumps and freezes when switching periods.
It also introduces some changes to the SourceBufferSink
to handle the appends and removes with a queue.
Closes #1708 (closed)