Mercurial > mplayer.hg
comparison stream/vcd_read.h @ 33349:3ab3212fb624
Make vcd_seek_to_track static, the GUI no longer needs to
call it directly.
author | reimar |
---|---|
date | Sat, 07 May 2011 21:32:50 +0000 |
parents | 9bab99cfdff2 |
children | cc42d1d53695 |
comparison
equal
deleted
inserted
replaced
33348:62ab329812c9 | 33349:3ab3212fb624 |
---|---|
60 return vcd->entry.cdte_addr.msf.frame + | 60 return vcd->entry.cdte_addr.msf.frame + |
61 (vcd->entry.cdte_addr.msf.second+ | 61 (vcd->entry.cdte_addr.msf.second+ |
62 vcd->entry.cdte_addr.msf.minute*60)*75 - 150; | 62 vcd->entry.cdte_addr.msf.minute*60)*75 - 150; |
63 } | 63 } |
64 | 64 |
65 int vcd_seek_to_track(mp_vcd_priv_t* vcd,int track){ | 65 static int vcd_seek_to_track(mp_vcd_priv_t* vcd,int track){ |
66 vcd->entry.cdte_format = CDROM_MSF; | 66 vcd->entry.cdte_format = CDROM_MSF; |
67 vcd->entry.cdte_track = track; | 67 vcd->entry.cdte_track = track; |
68 if (ioctl(vcd->fd, CDROMREADTOCENTRY, &vcd->entry)) { | 68 if (ioctl(vcd->fd, CDROMREADTOCENTRY, &vcd->entry)) { |
69 mp_msg(MSGT_STREAM,MSGL_ERR,"ioctl dif1: %s\n",strerror(errno)); | 69 mp_msg(MSGT_STREAM,MSGL_ERR,"ioctl dif1: %s\n",strerror(errno)); |
70 return -1; | 70 return -1; |