archive: replaced setup_stream() with open_stream()

The open_stream() method opens the input_stream.  This allows the
archive plugin to do its own initialization, and it also allows it to
use input_stream.data.  We can remove input_stream.archive now, which
was unnatural to have in the first place.
This commit is contained in:
Max Kellermann
2009-01-30 00:53:32 +01:00
parent dc1cc7e7e5
commit 82cfce76eb
7 changed files with 37 additions and 135 deletions

View File

@@ -127,7 +127,7 @@ static void decoder_run_song(const struct song *song, const char *uri)
pcm_convert_init(&decoder.conv_state);
ret = false;
if (!song_is_file(song)) {
if (!song_is_file(song) || true) {
unsigned int next = 0;
/* first we try mime types: */