From: Rocky B. <ro...@us...> - 2002-12-24 09:11:17
|
Update of /cvsroot/xine/xine-vcdnav/input In directory sc8-pr-cvs1:/tmp/cvs-serv28127 Modified Files: vcdplayer.c Log Message: Remove another OS-specific tocent reference. Index: vcdplayer.c =================================================================== RCS file: /cvsroot/xine/xine-vcdnav/input/vcdplayer.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- vcdplayer.c 24 Dec 2002 08:33:21 -0000 1.25 +++ vcdplayer.c 24 Dec 2002 09:11:14 -0000 1.26 @@ -694,22 +694,27 @@ Set reading to play an entire track. */ static void -_vcdplayer_set_track(vcdplayer_input_t *this, unsigned int num) +_vcdplayer_set_track(vcdplayer_input_t *this, unsigned int track_num) { - if (num < 1 || num > this->total_tracks) + + if (track_num < 1 || track_num > this->total_tracks) return; else { + vcdinfo_obj_t *obj = &this->vcd; vcdinfo_itemid_t itemid; + msf_t msf; - this->cur_msf.track = num; + this->cur_msf.track = track_num; - itemid.num = num; + itemid.num = track_num; itemid.type = VCDINFO_ITEM_TYPE_TRACK; - this->cur_msf.min = this->tocent[num].cdte_addr.msf.minute; - this->cur_msf.sec = this->tocent[num].cdte_addr.msf.second; - this->cur_msf.frame = this->tocent[num].cdte_addr.msf.frame; + vcdinfo_get_track_msf(obj, track_num, &msf); + + this->cur_msf.min = from_bcd8(msf.m); + this->cur_msf.sec = from_bcd8(msf.s); + this->cur_msf.frame = from_bcd8(msf.f); _vcdplayer_set_origin(this, _vcdplayer_get_item_size(this, itemid)); /* Playing seems not to continue without break to the next track. |