Several posts in other forums claim that his bug
https://bugs.launchpad.net/vlc/+bug/1503998/+activity can be mitigated in the player GUI by setting MPEG-TS preferences "Trust in-stream PCR" to off and "Seek on the basis of percent not time" to on. How can the equivalent be done in a custom app that uses libvlc?