diff options
author | waker <wakeroid@gmail.com> | 2011-03-10 11:38:55 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-03-10 11:38:55 +0100 |
commit | 4e5e98d8046b81e91875bea00e954ec45298371a (patch) | |
tree | 41331687d2bd98702f185dba66cdb5aded084346 /plugins/gtkui/trkproperties.c | |
parent | bf8c195369b6e9c105a255427c59bdf3e8fef065 (diff) |
don't write tags into subtracks
Diffstat (limited to 'plugins/gtkui/trkproperties.c')
-rw-r--r-- | plugins/gtkui/trkproperties.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c index ca50da2a..95f15725 100644 --- a/plugins/gtkui/trkproperties.c +++ b/plugins/gtkui/trkproperties.c @@ -493,6 +493,10 @@ write_meta_worker (void *ctx) { DB_playItem_t *track = tracks[t]; const char *decoder_id = deadbeef->pl_find_meta (track, ":DECODER"); if (track && decoder_id) { + int is_subtrack = deadbeef->pl_get_item_flags (track) & DDB_IS_SUBTRACK; + if (is_subtrack) { + continue; + } deadbeef->pl_item_ref (track); g_idle_add (set_progress_cb, track); // find decoder |