1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-04 23:40:47 +00:00

Reindent.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30803 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-03-01 19:21:59 +00:00
parent 2a6755e10d
commit 2b91c7f044

View File

@ -218,12 +218,12 @@ static int cue_find_bin (char *firstline) {
for (i = 0; fd_bin == -1 && i < 6; i++) { for (i = 0; fd_bin == -1 && i < 6; i++) {
switch (i) { switch (i) {
case 0: case 0:
/* now try to open that file, without path */ /* now try to open that file, without path */
cur_name = bin_filename; cur_name = bin_filename;
break; break;
case 1: case 1:
/* now try to find it with the path of the cue file */ /* now try to find it with the path of the cue file */
snprintf(s,sizeof( s ),"%s/%s",bincue_path,bin_filename); snprintf(s,sizeof( s ),"%s/%s",bincue_path,bin_filename);
cur_name = s; cur_name = s;
break; break;
case 2: case 2:
@ -234,21 +234,21 @@ static int cue_find_bin (char *firstline) {
cur_name = s; cur_name = s;
break; break;
case 3: case 3:
/* ok try it with path */ /* ok try it with path */
snprintf(t, sizeof( t ), "%s/%s", bincue_path, s); snprintf(t, sizeof( t ), "%s/%s", bincue_path, s);
fd_bin = open (t, O_RDONLY); fd_bin = open (t, O_RDONLY);
cur_name = t; cur_name = t;
break; break;
case 4: case 4:
/* now I would say the whole filename is shit, build our own */ /* now I would say the whole filename is shit, build our own */
strncpy(s, cue_filename, strlen(cue_filename) - 3 ); strncpy(s, cue_filename, strlen(cue_filename) - 3 );
s[strlen(cue_filename) - 3] = '\0'; s[strlen(cue_filename) - 3] = '\0';
strcat(s, "img"); strcat(s, "img");
cur_name = s; cur_name = s;
break; break;
case 5: case 5:
/* ok try it with path */ /* ok try it with path */
snprintf(t, sizeof( t ), "%s/%s", bincue_path, s); snprintf(t, sizeof( t ), "%s/%s", bincue_path, s);
cur_name = t; cur_name = t;
break; break;
} }
@ -259,13 +259,13 @@ static int cue_find_bin (char *firstline) {
} }
} }
if (fd_bin == -1) if (fd_bin == -1)
{ {
/* I'll give up */ /* I'll give up */
mp_msg(MSGT_OPEN,MSGL_ERR, mp_msg(MSGT_OPEN,MSGL_ERR,
MSGTR_MPDEMUX_CUEREAD_CannotFindBinFile); MSGTR_MPDEMUX_CUEREAD_CannotFindBinFile);
return -1; return -1;
} }
if (cur_name != bin_filename) if (cur_name != bin_filename)
strcpy(bin_filename, cur_name); strcpy(bin_filename, cur_name);