mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 19:34:14 +00:00
Move functions into proper order to avoid extra declarations.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30813 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3ed38bacc4
commit
cd4aa2aa30
@ -468,8 +468,18 @@ static int cue_read_toc_entry(int track) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int seek(stream_t *s,off_t newpos);
|
||||
static int cue_vcd_get_track_end (int track);
|
||||
static int cue_vcd_get_track_end (int track){
|
||||
int sector = cue_msf_2_sector(tracks[track].minute, tracks[track].second,
|
||||
tracks[track].frame);
|
||||
|
||||
return VCD_SECTOR_DATA * sector;
|
||||
}
|
||||
|
||||
static int seek(stream_t *s,off_t newpos) {
|
||||
s->pos=newpos;
|
||||
cue_set_msf(s->pos/VCD_SECTOR_DATA);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int cue_vcd_seek_to_track (stream_t *stream, int track){
|
||||
int pos;
|
||||
@ -483,13 +493,6 @@ static int cue_vcd_seek_to_track (stream_t *stream, int track){
|
||||
return pos;
|
||||
}
|
||||
|
||||
static int cue_vcd_get_track_end (int track){
|
||||
int sector = cue_msf_2_sector(tracks[track].minute, tracks[track].second,
|
||||
tracks[track].frame);
|
||||
|
||||
return VCD_SECTOR_DATA * sector;
|
||||
}
|
||||
|
||||
static void cue_vcd_read_toc(void){
|
||||
int i;
|
||||
for (i = 0; i < nTracks; ++i) {
|
||||
@ -544,12 +547,6 @@ static int cue_vcd_read(stream_t *stream, char *mem, int size) {
|
||||
return VCD_SECTOR_DATA;
|
||||
}
|
||||
|
||||
static int seek(stream_t *s,off_t newpos) {
|
||||
s->pos=newpos;
|
||||
cue_set_msf(s->pos/VCD_SECTOR_DATA);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int control(stream_t *stream, int cmd, void *arg) {
|
||||
switch(cmd) {
|
||||
case STREAM_CTRL_GET_NUM_CHAPTERS:
|
||||
|
Loading…
Reference in New Issue
Block a user