decoder_api: pass "seekable" flag to decoder_initialized()
Don't pass the "seekable" flag with every decoder_data() invocation. Since that flag won't change within the file, it is enough to pass it to decoder_initialized() once per file.
This commit is contained in:
@@ -116,7 +116,7 @@ struct decoder;
|
||||
*/
|
||||
void decoder_initialized(struct decoder * decoder,
|
||||
const struct audio_format *audio_format,
|
||||
float total_time);
|
||||
bool seekable, float total_time);
|
||||
|
||||
const char *decoder_get_url(struct decoder * decoder, char * buffer);
|
||||
|
||||
@@ -151,7 +151,7 @@ size_t decoder_read(struct decoder *decoder,
|
||||
*/
|
||||
enum decoder_command
|
||||
decoder_data(struct decoder *decoder,
|
||||
struct input_stream *inStream, int seekable,
|
||||
struct input_stream *inStream,
|
||||
void *data, size_t datalen, float data_time, uint16_t bitRate,
|
||||
ReplayGainInfo * replayGainInfo);
|
||||
|
||||
|
Reference in New Issue
Block a user