aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins/ogg_plugin.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-06-10 21:42:20 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-06-10 21:42:20 +0000
commit43255a7f63af65d88bbead4c0d6429ef2008ada8 (patch)
treeeab9001afffd5a0e0e4a4ce064ab43fc510e2176 /src/inputPlugins/ogg_plugin.c
parent3b1efb55883a2382d6971f947767a02b1ee28ea2 (diff)
downloadmpd-43255a7f63af65d88bbead4c0d6429ef2008ada8.tar.gz
mpd-43255a7f63af65d88bbead4c0d6429ef2008ada8.tar.xz
mpd-43255a7f63af65d88bbead4c0d6429ef2008ada8.zip
since stuff like vorbis streams report actual time into stream,
not time played, for previous add a hack where we record the difference in time between previous presses git-svn-id: https://svn.musicpd.org/mpd/trunk@1440 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputPlugins/ogg_plugin.c')
-rw-r--r--src/inputPlugins/ogg_plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/inputPlugins/ogg_plugin.c b/src/inputPlugins/ogg_plugin.c
index c5197f132..b50ea5ea1 100644
--- a/src/inputPlugins/ogg_plugin.c
+++ b/src/inputPlugins/ogg_plugin.c
@@ -318,7 +318,8 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream)
sendDataToOutputBuffer(cb, inStream, dc,
inStream->seekable,
chunk, chunkpos,
- ov_time_tell(&vf),
+ ov_pcm_tell(&vf)/
+ dc->audioFormat.sampleRate,
bitRate);
if(dc->stop) break;