From bad350bc18ab81661253bf42245b9e3fa175d026 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 25 Dec 2009 19:47:33 +0100 Subject: 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. --- src/decoder_thread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/decoder_thread.c') diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 9f297ad0d..9c6f3aab8 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -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; -- cgit v1.2.3