• Max Kellermann's avatar
    decoder_api: emulate SEEK command for initial seek to CUE track · 525a7919
    Max Kellermann authored
    When playing a CUE track, the player thread waited for the decoder to
    become ready, and then sent a SEEK command to the beginning of the CUE
    track.  If that is near the start of the song file, and the track is
    short enough, the decoder could have finished decoding already at that
    point, and seeking fails.
    
    This commit makes this initial seek more robust: instead of letting
    the player thread deal with the difficult timings, let the decoder API
    emulate a SEEK command, and return it to the decoder plugin, as soon
    as the plugin finishes its initialization.
    525a7919
player_thread.c 24.6 KB