From d10d940aa6a9c361c61d81ed378b46b8afb17198 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 19 Apr 2010 20:27:52 +0200 Subject: cleaned up some of bad/unused messages and events; implemented new notification-daemon osd; --- plugins/cdda/cdda.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'plugins/cdda') 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); -- cgit v1.2.3