diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 09:43:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 10:45:10 +0200 |
commit | 05de2e998c7df2757ae63ce6a053e27eca3d13ca (patch) | |
tree | 2c85c43cb69dc2dc7086bfddc66090928cd0d93f /src/decoder/PcmDecoderPlugin.cxx | |
parent | 24780d99e61af44141e8f0d0d0776a1c994e6770 (diff) | |
download | mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.tar.gz mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.tar.xz mpd-05de2e998c7df2757ae63ce6a053e27eca3d13ca.zip |
InputStream: use int64_t instead of goffset
Decouple some more from GLib.
Diffstat (limited to 'src/decoder/PcmDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/PcmDecoderPlugin.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/PcmDecoderPlugin.cxx b/src/decoder/PcmDecoderPlugin.cxx index 61062f7f9..874fb5b89 100644 --- a/src/decoder/PcmDecoderPlugin.cxx +++ b/src/decoder/PcmDecoderPlugin.cxx @@ -46,7 +46,7 @@ pcm_stream_decode(struct decoder *decoder, struct input_stream *is) const double time_to_size = audio_format.GetTimeToSize(); float total_time = -1; - const goffset size = is->GetSize(); + const auto size = is->GetSize(); if (size >= 0) total_time = size / time_to_size; @@ -74,8 +74,8 @@ pcm_stream_decode(struct decoder *decoder, struct input_stream *is) buffer, nbytes, 0) : decoder_get_command(decoder); if (cmd == DecoderCommand::SEEK) { - goffset offset = (goffset)(time_to_size * - decoder_seek_where(decoder)); + input_stream::offset_type offset(time_to_size * + decoder_seek_where(decoder)); Error error; if (is->LockSeek(offset, SEEK_SET, error)) { |