Skip to content
  • Wim Taymans's avatar
    jitterbuffer: improve EOS handling · 3e11ce43
    Wim Taymans authored
    Make a new method to disable the jitterbuffer buffering.
    Rework the update_estimated_eos() method. Calculate how much time
    there is left to play. If we have less than the delay of the
    jitterbuffer, we disabled buffering because we might never be able to
    fill the complete jitterbuffer again.
    If we receive an EOS event, disable buffering. We will drain the
    buffer and eventually push the EOS event out.
    When we reach the estimated NPT timeout and we didn't receive an EOS
    event, make one and queue it so that it can be pushed.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=728017
    3e11ce43