tag/Handler: convert to class with virtual methods
This commit is contained in:
@@ -279,8 +279,7 @@ mpd_mpg123_file_decode(DecoderClient &client, Path path_fs)
|
||||
}
|
||||
|
||||
static bool
|
||||
mpd_mpg123_scan_file(Path path_fs,
|
||||
const TagHandler &handler, void *handler_ctx) noexcept
|
||||
mpd_mpg123_scan_file(Path path_fs, TagHandler &handler) noexcept
|
||||
{
|
||||
int error;
|
||||
mpg123_handle *const handle = mpg123_new(nullptr, &error);
|
||||
@@ -316,7 +315,7 @@ mpd_mpg123_scan_file(Path path_fs,
|
||||
SongTime::FromScale<uint64_t>(num_samples,
|
||||
audio_format.sample_rate);
|
||||
|
||||
tag_handler_invoke_duration(handler, handler_ctx, duration);
|
||||
handler.OnDuration(duration);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user