summaryrefslogtreecommitdiff
path: root/cvorbis.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-20 21:06:43 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-20 21:06:43 +0200
commitda5f0b416df7d721310ef07f3006da561174a712 (patch)
treef3cb0166b3e7c2917b331bb2926131fcea8f17bc /cvorbis.c
parent429f0b3d8b051fd992166fcfcd4a38e9aa763833 (diff)
fixed bug in cvorbis_init preventing some songs from playing
Diffstat (limited to 'cvorbis.c')
-rw-r--r--cvorbis.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cvorbis.c b/cvorbis.c
index 4c225267..3373909b 100644
--- a/cvorbis.c
+++ b/cvorbis.c
@@ -60,7 +60,7 @@ cvorbis_init (struct playItem_s *it) {
cvorbis.info.channels = vi->channels;
cvorbis.info.samplesPerSecond = vi->rate;
cvorbis.info.readposition = 0;
- if (timeend > 0) {
+ if (it->timeend > 0) {
timestart = it->timestart;
timeend = it->timeend;
cvorbis_seek (0);
@@ -69,7 +69,6 @@ cvorbis_init (struct playItem_s *it) {
timestart = 0;
timeend = it->duration;
}
-// printf ("vorbis info: bps: %d, size: %d, chan: %d, rate: %d, dur: %f\n", cvorbis.info.bitsPerSample, cvorbis.info.dataSize, cvorbis.info.channels, cvorbis.info.samplesPerSecond, cvorbis.info.duration);
return 0;
}