diff options
author | 2009-08-20 21:06:43 +0200 | |
---|---|---|
committer | 2009-08-20 21:06:43 +0200 | |
commit | da5f0b416df7d721310ef07f3006da561174a712 (patch) | |
tree | f3cb0166b3e7c2917b331bb2926131fcea8f17bc /cvorbis.c | |
parent | 429f0b3d8b051fd992166fcfcd4a38e9aa763833 (diff) |
fixed bug in cvorbis_init preventing some songs from playing
Diffstat (limited to 'cvorbis.c')
-rw-r--r-- | cvorbis.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |