Jitter buffer improvements (bug #4167)