summaryrefslogtreecommitdiff
path: root/apps/gui/gwps-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/gwps-common.c')
-rw-r--r--apps/gui/gwps-common.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index 5524c1490e..b25168f252 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -389,11 +389,9 @@ bool update(struct gui_wps *gwps)
389 /* We need to parse the new cuesheet */ 389 /* We need to parse the new cuesheet */
390 390
391 char cuepath[MAX_PATH]; 391 char cuepath[MAX_PATH];
392 strncpy(cuepath, gwps->state->id3->path, MAX_PATH);
393 char *dot = strrchr(cuepath, '.');
394 strcpy(dot, ".cue");
395 392
396 if (parse_cuesheet(cuepath, curr_cue)) 393 if (look_for_cuesheet_file(gwps->state->id3->path, cuepath) &&
394 parse_cuesheet(cuepath, curr_cue))
397 { 395 {
398 gwps->state->id3->cuesheet_type = 1; 396 gwps->state->id3->cuesheet_type = 1;
399 strcpy(curr_cue->audio_filename, gwps->state->id3->path); 397 strcpy(curr_cue->audio_filename, gwps->state->id3->path);