diff options
author | 2010-04-17 22:23:46 +0200 | |
---|---|---|
committer | 2010-04-17 22:23:46 +0200 | |
commit | f7b69992c780be685f014808118a94aef3d87fed (patch) | |
tree | 9943c9ad1475f0042c3a5ef9497177f34879fc49 /plugins/gtkui | |
parent | f29d6657ba7d4d08967fb369bae2e1b3c033bb53 (diff) |
added flags to each track in playlist, which bumped dbpl version to 1.2;
list of file tags is no longer written as metadata string, but as flags;
fixed couple of memory leaks;
blocked metadata editing in subtracks;
blocked metadata editing if playlist file format is less than 1.2;
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/plcommon.c | 1 | ||||
-rw-r--r-- | plugins/gtkui/trkproperties.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c index 483c797f..b46a4926 100644 --- a/plugins/gtkui/plcommon.c +++ b/plugins/gtkui/plcommon.c @@ -256,6 +256,7 @@ main_properties_activate (GtkMenuItem *menuitem, return; } show_track_properties_dlg (it); + deadbeef->pl_item_unref (it); } void diff --git a/plugins/gtkui/trkproperties.c b/plugins/gtkui/trkproperties.c index 29611262..6f5c9ef6 100644 --- a/plugins/gtkui/trkproperties.c +++ b/plugins/gtkui/trkproperties.c @@ -108,7 +108,9 @@ show_track_properties_dlg (DB_playItem_t *it) { int allow_editing = 0; - if (deadbeef->is_local_file (it->fname)) { + int is_subtrack = deadbeef->pl_get_item_flags (it) & DDB_IS_SUBTRACK; + + if (!is_subtrack && deadbeef->is_local_file (it->fname)) { // get decoder plugin by id DB_decoder_t *dec = NULL; if (it->decoder_id) { |