diff options
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r-- | apps/cuesheet.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 57c588ee9a..be89ef96cf 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c | |||
@@ -64,7 +64,7 @@ static bool search_for_cuesheet(const char *path, struct cuesheet_file *cue_file | |||
64 | { | 64 | { |
65 | strcpy(cuepath, CUE_DIR); | 65 | strcpy(cuepath, CUE_DIR); |
66 | if (strlcat(cuepath, slash, MAX_PATH) >= MAX_PATH) | 66 | if (strlcat(cuepath, slash, MAX_PATH) >= MAX_PATH) |
67 | goto skip; /* overflow */ | 67 | goto skip; /* overflow */ |
68 | char *dot = strrchr(cuepath, '.'); | 68 | char *dot = strrchr(cuepath, '.'); |
69 | strcpy(dot, ".cue"); | 69 | strcpy(dot, ".cue"); |
70 | if (!file_exists(cuepath)) | 70 | if (!file_exists(cuepath)) |
@@ -305,7 +305,7 @@ bool parse_cuesheet(struct cuesheet_file *cue_file, struct cuesheet *cue) | |||
305 | break; | 305 | break; |
306 | } | 306 | } |
307 | 307 | ||
308 | if (dest) | 308 | if (dest) |
309 | { | 309 | { |
310 | if (char_enc == CHAR_ENC_ISO_8859_1) | 310 | if (char_enc == CHAR_ENC_ISO_8859_1) |
311 | { | 311 | { |
@@ -317,7 +317,7 @@ bool parse_cuesheet(struct cuesheet_file *cue_file, struct cuesheet *cue) | |||
317 | { | 317 | { |
318 | strlcpy(dest, string, count); | 318 | strlcpy(dest, string, count); |
319 | } | 319 | } |
320 | } | 320 | } |
321 | } | 321 | } |
322 | if (is_embedded) | 322 | if (is_embedded) |
323 | { | 323 | { |
@@ -505,7 +505,7 @@ bool display_cuesheet_content(char* filename) | |||
505 | bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_pos) | 505 | bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_pos) |
506 | { | 506 | { |
507 | int track = cue_find_current_track(cue, curr_pos); | 507 | int track = cue_find_current_track(cue, curr_pos); |
508 | 508 | ||
509 | if (direction >= 0 && track == cue->track_count - 1) | 509 | if (direction >= 0 && track == cue->track_count - 1) |
510 | { | 510 | { |
511 | /* we want to get out of the cuesheet */ | 511 | /* we want to get out of the cuesheet */ |
@@ -520,7 +520,7 @@ bool curr_cuesheet_skip(struct cuesheet *cue, int direction, unsigned long curr_ | |||
520 | to previous cuesheet segment. If skipping backward after | 520 | to previous cuesheet segment. If skipping backward after |
521 | DEFAULT_SKIP_TRESH seconds have elapsed, skip to the start of the | 521 | DEFAULT_SKIP_TRESH seconds have elapsed, skip to the start of the |
522 | current cuesheet segment */ | 522 | current cuesheet segment */ |
523 | if (direction == 1 || | 523 | if (direction == 1 || |
524 | ((curr_pos - cue->tracks[track].offset) < DEFAULT_SKIP_TRESH)) | 524 | ((curr_pos - cue->tracks[track].offset) < DEFAULT_SKIP_TRESH)) |
525 | { | 525 | { |
526 | track += direction; | 526 | track += direction; |