tsdemux: Async audio video in streams
This commit eaf918df causes with a custom sink asynchronous audio and video (on a set top box). On a PC you can see some minor video distortions and very short audio hickups. The log shows:
0:01:02.344852713 25753 0x1158ca0 WARN audiobasesink gstaudiobasesink.c:1787:gst_audio_base_sink_get_alignment:<osssink0> Unexpected discontinuity in audio timestamps of +0:00:00.064000000, resyncing
When I revert the commit the problem disappears and also the warning is not shown any more in the log. You can reproduce it with this stream:
GST_DEBUG=3 gst-launch-1.0 playbin uri=https://tsstv-vh.akamaihd.net/i/p-2780_u-_l-_a-_c-DE_e-175892_i-2087143720191127221358_k-_q-_t-hdvideo/hdflash/del/2019/editorial/190926_DEL_KUEHLBOX_F2_Kontakte_web_,192,450,850,1500,3000,.mp4.csmil/index_4_av.m3u8?null=0
After around 10-11 seconds a cell phone appears in the video and you can see some artefacts. Right after that there is a sound hickup.