Mercurial > mplayer.hg
changeset 30771:51a05cd3fa06
Move functions into proper order to avoid extra declarations.
author | reimar |
---|---|
date | Mon, 01 Mar 2010 20:33:47 +0000 |
parents | 6b3b83e99aeb |
children | 191606885380 |
files | stream/stream_cue.c |
diffstat | 1 files changed, 12 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_cue.c Mon Mar 01 20:31:56 2010 +0000 +++ b/stream/stream_cue.c Mon Mar 01 20:33:47 2010 +0000 @@ -468,8 +468,18 @@ 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 @@ 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 @@ 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: