diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 21:52:28 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 22:27:04 +0200 |
commit | 0c2d767f6fca030a8da3202c05b3eb80ba176ef1 (patch) | |
tree | 481acab9b4a1fadf8e208142bde510167b406d7e /test | |
parent | 02e697032f7f375e67acc349ada6d849edf51aa3 (diff) | |
download | mpd-0c2d767f6fca030a8da3202c05b3eb80ba176ef1.tar.gz mpd-0c2d767f6fca030a8da3202c05b3eb80ba176ef1.tar.xz mpd-0c2d767f6fca030a8da3202c05b3eb80ba176ef1.zip |
DecoderAPI: use std::chrono::duration for decoder_seek*()
For type safety and code readability.
Diffstat (limited to 'test')
-rw-r--r-- | test/FakeDecoderAPI.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/test/FakeDecoderAPI.cxx b/test/FakeDecoderAPI.cxx index 54e75eb49..2516e9e62 100644 --- a/test/FakeDecoderAPI.cxx +++ b/test/FakeDecoderAPI.cxx @@ -55,16 +55,10 @@ decoder_command_finished(gcc_unused Decoder &decoder) { } -double -decoder_seek_where(gcc_unused Decoder &decoder) +SongTime +decoder_seek_time(gcc_unused Decoder &decoder) { - return 1.0; -} - -unsigned -decoder_seek_where_ms(gcc_unused Decoder &decoder) -{ - return 1; + return SongTime(); } uint64_t |