[MPlayer-cvslog] r30813 - trunk/stream/stream_cue.c

reimar subversion at mplayerhq.hu
Mon Mar 1 21:33:47 CET 2010


Author: reimar
Date: Mon Mar  1 21:33:47 2010
New Revision: 30813

Log:
Move functions into proper order to avoid extra declarations.

Modified:
   trunk/stream/stream_cue.c

Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c	Mon Mar  1 21:31:56 2010	(r30812)
+++ trunk/stream/stream_cue.c	Mon Mar  1 21:33:47 2010	(r30813)
@@ -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
   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
   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:


More information about the MPlayer-cvslog mailing list