Commit 9ac8f89b authored by Qball Cow's avatar Qball Cow Committed by Max Kellermann

cue_tag: show CUE track numbers

parent c6a72a14
......@@ -16,6 +16,7 @@ ver 0.17 (2011/??/??)
- shout: add possibility to set url
- roar: new output plugin for RoarAudio
* state_file: add option "restore_paused"
* cue: show CUE track numbers
ver 0.16.3 (2011/??/??)
......
......@@ -178,6 +178,15 @@ cue_tag(struct Cd *cd, unsigned tnum)
if (tag == NULL)
return NULL;
/* Create a tag number */
tag_clear_items_by_type(tag, TAG_TRACK);
char convert_uinttostring[8];
snprintf(convert_uinttostring, sizeof(convert_uinttostring),
"%02d/%02d", tnum, cd_get_ntrack(cd));
tag_add_item(tag, TAG_TRACK, convert_uinttostring);
tag->time = track_get_length(track)
- track_get_index(track, 1)
+ track_get_zero_pre(track);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment