diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-22 22:57:55 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-09-22 22:57:55 +0200 |
commit | d377cbbef40a2ea672d746c1c9e0a6643125c7e2 (patch) | |
tree | 5e909a8a234a079b681e024d1c2f93fdb9d50939 /plugins/vorbis | |
parent | 3c0f4bd7f6e0eac196174dbcf7d9cc06562831b5 (diff) |
removed start/end time from playItem_t
Diffstat (limited to 'plugins/vorbis')
-rw-r--r-- | plugins/vorbis/vorbis.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index 612c9e1a..bb778304 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -71,16 +71,12 @@ cvorbis_init (DB_playItem_t *it) { plugin.info.samplerate = vi->rate; plugin.info.readpos = 0; currentsample = 0; - if (it->timeend > 0) { - timestart = it->timestart; - timeend = it->timeend; + if (it->endsample > 0) { startsample = it->startsample; endsample = it->endsample; plugin.seek_sample (0); } else { - timestart = 0; - timeend = it->duration; startsample = 0; endsample = ov_pcm_total (&vorbis_file, -1)-1; } |