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:
@@ -281,7 +281,7 @@ ffmpeg_decode_internal(struct ffmpeg_context *ctx)
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool
|
||||
static void
|
||||
ffmpeg_decode(struct decoder *decoder, struct input_stream *input)
|
||||
{
|
||||
struct ffmpeg_context ctx;
|
||||
@@ -289,7 +289,7 @@ ffmpeg_decode(struct decoder *decoder, struct input_stream *input)
|
||||
ctx.input = input;
|
||||
ctx.decoder = decoder;
|
||||
|
||||
return ffmpeg_helper(input, ffmpeg_decode_internal, &ctx);
|
||||
ffmpeg_helper(input, ffmpeg_decode_internal, &ctx);
|
||||
}
|
||||
|
||||
static bool ffmpeg_tag_internal(struct ffmpeg_context *ctx)
|
||||
|
||||
Reference in New Issue
Block a user