comparison stream/stream_cue.c @ 25703:986e8d8c1ae7

Get rid of quite useless inum variable
author reimar
date Sun, 13 Jan 2008 15:01:07 +0000
parents 68015115f63a
children 1977ed7f06d4
comparison
equal deleted inserted replaced
25702:c4275201a489 25703:986e8d8c1ae7
96 static int nTracks = 0; 96 static int nTracks = 0;
97 97
98 /* presumes Line is preloaded with the "current" line of the file */ 98 /* presumes Line is preloaded with the "current" line of the file */
99 static int cue_getTrackinfo(char *Line, tTrack *track) 99 static int cue_getTrackinfo(char *Line, tTrack *track)
100 { 100 {
101 char inum[3];
102 char min; 101 char min;
103 char sec; 102 char sec;
104 char fps; 103 char fps;
105 int already_set = 0; 104 int already_set = 0;
106 105
130 129
131 /* Track 0 or 1, take the first an get fill the values*/ 130 /* Track 0 or 1, take the first an get fill the values*/
132 if (strncmp(&Line[4], "INDEX ", 6)==0) 131 if (strncmp(&Line[4], "INDEX ", 6)==0)
133 { 132 {
134 /* check stuff here so if the answer is false the else stuff below won't be executed */ 133 /* check stuff here so if the answer is false the else stuff below won't be executed */
135 strncpy(inum, &Line[10], 2); inum[2] = '\0'; 134 Line[12] = 0;
136 if ((already_set == 0) && 135 if ((already_set == 0) &&
137 ((strcmp(inum, "00")==0) || (strcmp(inum, "01")==0))) 136 ((strcmp(&Line[10], "00")==0) || (strcmp(&Line[10], "01")==0)))
138 { 137 {
139 already_set = 1; 138 already_set = 1;
140 139
141 min = ((Line[13]-'0')<<4) | (Line[14]-'0'); 140 min = ((Line[13]-'0')<<4) | (Line[14]-'0');
142 sec = ((Line[16]-'0')<<4) | (Line[17]-'0'); 141 sec = ((Line[16]-'0')<<4) | (Line[17]-'0');