• Max Kellermann's avatar
    input/rewind: new input_stream wrapper to allow stream rewinding · c88f95a2
    Max Kellermann authored
    This replaces the rewinding buffer code from the CURL input plugin.
    It is more generic, and allows rewinding even when the server sends
    Icy-Metadata (which would have been too difficult to implement within
    the CURL plugin).
    
    This is a rather complex patch for the stable branch (v0.15.x), but it
    fixes a serious problem: the "vorbis" decoder plugin was unable to
    play streams with Icy-Metadata, because it couldn't rewind the stream
    after detecting the codec (Vorbis vs. FLAC).
    c88f95a2
rewind_input_plugin.h 1.26 KB