decoder: return void from decode() methods
The stream_decode() and file_decode() methods returned a boolean, indicating whether they were able to decode the song. This is redundant, since we already know that: if decoder_initialized() has been called (and dc.state==DECODE), the plugin succeeded. Change both methods to return void.
This commit is contained in:
@@ -68,7 +68,7 @@ struct decoder_plugin {
|
||||
* true if it was able to do so (even if an error occured
|
||||
* during playback)
|
||||
*/
|
||||
bool (*stream_decode)(struct decoder *, struct input_stream *);
|
||||
void (*stream_decode)(struct decoder *, struct input_stream *);
|
||||
|
||||
/**
|
||||
* use this if and only if your InputPlugin can only be passed
|
||||
@@ -79,7 +79,7 @@ struct decoder_plugin {
|
||||
* true if it was able to do so (even if an error occured
|
||||
* during playback)
|
||||
*/
|
||||
bool (*file_decode)(struct decoder *, const char *path);
|
||||
void (*file_decode)(struct decoder *, const char *path);
|
||||
|
||||
/**
|
||||
* file should be the full path! Returns NULL if a tag cannot
|
||||
|
||||
Reference in New Issue
Block a user