From d377cbbef40a2ea672d746c1c9e0a6643125c7e2 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 22 Sep 2009 22:57:55 +0200 Subject: removed start/end time from playItem_t --- plugins/vorbis/vorbis.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/vorbis') 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; } -- cgit v1.2.3