summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-24 20:00:21 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-24 20:00:21 +0200
commitb1e379ec5b930f2f26c963f4c42d095be205c372 (patch)
tree9659ae91036d2ebe4089af400ef601f82a0ef674 /playlist.c
parentb5892fa4b10fc3a42178f59a5203faf210355201 (diff)
set cuesheet tag flag while adding tracks
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/playlist.c b/playlist.c
index 69f6e4ae..9ecbdecc 100644
--- a/playlist.c
+++ b/playlist.c
@@ -656,7 +656,7 @@ pl_process_cue_track (playItem_t *after, const char *fname, playItem_t **prev, c
trace ("fail :-(\n");
}
}
- //trace ("calc endsample=%d, prevtime=%f, samplerate=%d, prev track duration=%f\n", (*prev)->endsample, prevtime, samplerate, (*prev)->duration);
+ trace ("startsample=%d, endsample=%d, prevtime=%f, samplerate=%d, prev track duration=%f\n", (*prev)->startsample, (*prev)->endsample, prevtime, samplerate, (*prev)->_duration);
}
// non-compliant hack to handle tracks which only store pregap info
if (!index01[0]) {
@@ -688,7 +688,7 @@ pl_process_cue_track (playItem_t *after, const char *fname, playItem_t **prev, c
if (date[0]) {
pl_add_meta (it, "year", date);
}
- it->_flags |= DDB_IS_SUBTRACK;
+ it->_flags |= DDB_IS_SUBTRACK | DDB_TAG_CUESHEET;
after = pl_insert_item (after, it);
pl_item_unref (it);
*prev = it;