Solving the hang on transition issue

Addressing the issue where video playback would hang when transitioning
to a different quality stream with a large discontinuity in media
sequence.