decoder_api: added function decoder_timestamp()
Remove the data_time parameter from decoder_data(). This patch eliminates the timestamp counting in most decoder plugins, because the MPD core will do it automatically by default.
This commit is contained in:
@@ -303,6 +303,7 @@ decoder_run_song(struct decoder_control *dc,
|
||||
};
|
||||
int ret;
|
||||
|
||||
decoder.timestamp = 0.0;
|
||||
decoder.seeking = false;
|
||||
decoder.song_tag = song->tag != NULL && song_is_file(song)
|
||||
? tag_dup(song->tag) : NULL;
|
||||
|
||||
Reference in New Issue
Block a user