Ignore cuesheet title truncation
Change-Id: I0de8a1468379f60140fb30b6c086fe15ea753da2
This commit is contained in:
parent
bdbc7f7b7b
commit
2eeb338e90
1 changed files with 7 additions and 1 deletions
|
@ -361,10 +361,16 @@ void browse_cuesheet(struct cuesheet *cue)
|
|||
int action;
|
||||
bool done = false;
|
||||
char title[MAX_PATH];
|
||||
int len;
|
||||
|
||||
struct cuesheet_file cue_file;
|
||||
struct mp3entry *id3 = audio_current_track();
|
||||
|
||||
snprintf(title, MAX_PATH, "%s: %s", cue->performer, cue->title);
|
||||
len = snprintf(title, sizeof(title), "%s: %s", cue->performer, cue->title);
|
||||
|
||||
if ((unsigned) len > sizeof(title))
|
||||
DEBUGF("browse_cuesheet title truncated\n");
|
||||
|
||||
gui_synclist_init(&lists, list_get_name_cb, cue, false, 2, NULL);
|
||||
gui_synclist_set_nb_items(&lists, 2*cue->track_count);
|
||||
gui_synclist_set_title(&lists, title, 0);
|
||||
|
|
Loading…
Reference in a new issue