• Max Kellermann's avatar
    decoder_thread: reopen the stream after file_decode() has failed · 2536b0da
    Max Kellermann authored
    When decoding a local file, the decoder thread tries to run all
    matching decoders, until one succeeds.  Both file_decode() and
    stream_decode() can decode a stream, but MPD closes the stream before
    calling file_decode().  Problem is: when this decoder fails, and the
    next's stream_decode() method is invoked, the input_stream is still
    closed.  This patch reopens it.
    2536b0da
decoder_thread.c 6.93 KB