diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-19 20:27:52 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-04-19 20:27:52 +0200 |
commit | d10d940aa6a9c361c61d81ed378b46b8afb17198 (patch) | |
tree | af7ed351df6a2c906b7086fb371b6a22f3038fd3 /plugins/cdda | |
parent | 671f7f881faa64cede428431fb1d61e8fa007a26 (diff) |
cleaned up some of bad/unused messages and events;
implemented new notification-daemon osd;
Diffstat (limited to 'plugins/cdda')
-rw-r--r-- | plugins/cdda/cdda.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/cdda/cdda.c b/plugins/cdda/cdda.c index 4632be3f..998fd277 100644 --- a/plugins/cdda/cdda.c +++ b/plugins/cdda/cdda.c @@ -329,10 +329,7 @@ cddb_thread (void *items_i) { // FIXME: problem will happen here if item(s) were deleted from playlist, and new items were added in their places // possible solutions: catch EV_TRACKDELETED and mark item(s) in every thread as NULL - int idx = deadbeef->pl_get_idx_of (items[i]); trace ("track %d, artist=%s, album=%s, title=%s\n", i, artist, disc_title, cddb_track_get_title (track)); - if (idx == -1) - continue; deadbeef->pl_delete_all_meta (items[i]); deadbeef->pl_add_meta (items[i], "artist", artist); @@ -341,7 +338,7 @@ cddb_thread (void *items_i) char tmp[5]; snprintf (tmp, sizeof (tmp), "%02d", trk); deadbeef->pl_add_meta (items[i], "track", tmp); - deadbeef->sendmessage (M_TRACKCHANGED, 0, idx, 0); + deadbeef->plug_trigger_event_trackinfochanged (items[i]); deadbeef->pl_item_unref (items[i]); } cddb_disc_destroy (disc); |