I've found a way to synchronize the A/V streams with usleep() but I
don't think that's the best way to do this. Is there a switch_core....
function to perform a similar task (and maybe allow other tasks to run)?
Here's the current version of the playback loop (that takes into
consideration multiple RTP packets per video frame) :