• Max Kellermann's avatar
    player/Thread: make SEEK (partially) non-blocking · dee378b7
    Max Kellermann authored
    When the decoder is still starting up while we handle a SEEK, finish
    the "player SEEK" immediately and re-enter the player loop, being able
    to handle commands (and even cancel the pending seek).
    
    This is the first part in a series of patches to solve the "blocking
    input blocks decoder, blocks player, blocks the main thread" problem.
    There are many other blocking code locations left, and the main thread
    isn't non-blocking either because it waits for "seeking" to become
    false.
    dee378b7
Control.cxx 6.45 KB