decoder: removed plugin method try_decode()

Instead of having a seprate try_decode() method, let the
stream_decode() and file_decode() methods decide whether they are able
to decode the song.
This commit is contained in:
Max Kellermann
2008-11-10 15:07:01 +01:00
parent 10eea9d981
commit ff1acefb21
5 changed files with 14 additions and 51 deletions

View File

@@ -60,12 +60,6 @@ struct decoder_plugin {
*/
void (*finish)(void);
/**
* returns true if the input stream is decodable by the
* decoder plugin, false if not
*/
bool (*try_decode)(struct input_stream *);
/**
* this will be used to decode InputStreams, and is
* recommended for files and networked (HTTP) connections.