- tracks and that track == title+1 */
-
- p_vcd->i_lsn = track_lsn
- + (t->seekpoint[i]->i_byte_offset / M2F2_SECTOR_SIZE);
-
- p_access->info.i_pos = (int64_t)(p_vcd->i_lsn - track_lsn)
- * M2F2_SECTOR_SIZE;
+ tracks and that track == title+1 and we the play
+ item is entries (not tracks or lids).
+ We need to generalize all of this.
+ */
+
+ p_vcd->play_item.num = i;
+ p_vcd->play_item.type = VCDINFO_ITEM_TYPE_ENTRY;
+
+ VCDSetOrigin( p_access,
+ vcdinfo_get_track_lba(p_vcd->vcd, i_track),
+ vcdinfo_get_entry_lba(p_vcd->vcd, i),
+ vcdinfo_get_track_lba(p_vcd->vcd, i_track+1),
+ i_track, &(p_vcd->play_item) );