• Wim Taymans's avatar
    basesrc: fix race in PLAYING->PAUSED->PLAYING · e9f2714f
    Wim Taymans authored
    When we quickly switch from PLAYING to PAUSED and back to PLAYING it's possible
    in some cases that the task refuses to start, This is because when we go to
    PAUSED, we unschedule the clock timeout, which could return UNSCHEDULED when
    we're back to PLAYING, causing the task to PAUSE again with a wrong-state.
    
    This patch checks if we are running when we return with an UNSCHEDULED return
    value and if we are, try to create a new buffer.
    
    Fixes #597550
    e9f2714f