# HG changeset patch # User reimar # Date 1267471319 0 # Node ID b41ac9f6e26f1a6246d2e9e6c8d42e4384e5f0c9 # Parent 937621eaa2908e8cf5d0ea8525c2b579aefa3864 Reindent. diff -r 937621eaa290 -r b41ac9f6e26f stream/stream_cue.c --- a/stream/stream_cue.c Mon Mar 01 19:20:32 2010 +0000 +++ b/stream/stream_cue.c Mon Mar 01 19:21:59 2010 +0000 @@ -218,12 +218,12 @@ for (i = 0; fd_bin == -1 && i < 6; i++) { switch (i) { case 0: - /* now try to open that file, without path */ + /* now try to open that file, without path */ cur_name = bin_filename; break; case 1: - /* now try to find it with the path of the cue file */ - snprintf(s,sizeof( s ),"%s/%s",bincue_path,bin_filename); + /* now try to find it with the path of the cue file */ + snprintf(s,sizeof( s ),"%s/%s",bincue_path,bin_filename); cur_name = s; break; case 2: @@ -234,21 +234,21 @@ cur_name = s; break; case 3: - /* ok try it with path */ - snprintf(t, sizeof( t ), "%s/%s", bincue_path, s); - fd_bin = open (t, O_RDONLY); + /* ok try it with path */ + snprintf(t, sizeof( t ), "%s/%s", bincue_path, s); + fd_bin = open (t, O_RDONLY); cur_name = t; break; case 4: - /* now I would say the whole filename is shit, build our own */ - strncpy(s, cue_filename, strlen(cue_filename) - 3 ); - s[strlen(cue_filename) - 3] = '\0'; - strcat(s, "img"); + /* now I would say the whole filename is shit, build our own */ + strncpy(s, cue_filename, strlen(cue_filename) - 3 ); + s[strlen(cue_filename) - 3] = '\0'; + strcat(s, "img"); cur_name = s; break; case 5: - /* ok try it with path */ - snprintf(t, sizeof( t ), "%s/%s", bincue_path, s); + /* ok try it with path */ + snprintf(t, sizeof( t ), "%s/%s", bincue_path, s); cur_name = t; break; } @@ -259,13 +259,13 @@ } } - if (fd_bin == -1) - { - /* I'll give up */ - mp_msg(MSGT_OPEN,MSGL_ERR, - MSGTR_MPDEMUX_CUEREAD_CannotFindBinFile); - return -1; - } + if (fd_bin == -1) + { + /* I'll give up */ + mp_msg(MSGT_OPEN,MSGL_ERR, + MSGTR_MPDEMUX_CUEREAD_CannotFindBinFile); + return -1; + } if (cur_name != bin_filename) strcpy(bin_filename, cur_name);