• Max Kellermann's avatar
    wavpack: read first byte from wvc stream · 097bccd4
    Max Kellermann authored
    Instead of manually waiting for the input stream to become ready (to
    catch server errors), just read the first byte.  Since the
    wavpack_input has the capability to push back one byte, we can simply
    re-feed it.  Advantage is: decoder_read() handles everything for us,
    i.e. waiting for the stream, polling for decoder commands and error
    handling.
    097bccd4
wavpack_plugin.c 12.8 KB