diff options
author | Max Kellermann <max@duempel.org> | 2009-11-11 15:09:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-11 15:31:17 +0100 |
commit | 80b220a3a68b4f9c4d21fa416ff220e4262cde82 (patch) | |
tree | 060fa951317fb59154a8d2dde442ec41b5168be3 /src/decoder/oggflac_plugin.c | |
parent | 5cc3c4f5039cc57b414de3b94bb3ab0e54f28556 (diff) | |
download | mpd-80b220a3a68b4f9c4d21fa416ff220e4262cde82.tar.gz mpd-80b220a3a68b4f9c4d21fa416ff220e4262cde82.tar.xz mpd-80b220a3a68b4f9c4d21fa416ff220e4262cde82.zip |
decoder/flac: keep track of current frame number
We need this for more exact end-of-subsong detection for CUE files.
Diffstat (limited to 'src/decoder/oggflac_plugin.c')
-rw-r--r-- | src/decoder/oggflac_plugin.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decoder/oggflac_plugin.c b/src/decoder/oggflac_plugin.c index d4ba7b213..018875ae8 100644 --- a/src/decoder/oggflac_plugin.c +++ b/src/decoder/oggflac_plugin.c @@ -328,6 +328,7 @@ oggflac_decode(struct decoder * mpd_decoder, struct input_stream *input_stream) data.audio_format.sample_rate + 0.5; if (OggFLAC__seekable_stream_decoder_seek_absolute (decoder, seek_sample)) { + data.next_frame = seek_sample; data.time = ((float)seek_sample) / data.audio_format.sample_rate; data.position = 0; |