summaryrefslogtreecommitdiff
path: root/plugins/vorbis
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-19 20:27:52 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-19 20:27:52 +0200
commitd10d940aa6a9c361c61d81ed378b46b8afb17198 (patch)
treeaf7ed351df6a2c906b7086fb371b6a22f3038fd3 /plugins/vorbis
parent671f7f881faa64cede428431fb1d61e8fa007a26 (diff)
cleaned up some of bad/unused messages and events;
implemented new notification-daemon osd;
Diffstat (limited to 'plugins/vorbis')
-rw-r--r--plugins/vorbis/vorbis.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index a5a873ab..d31d9f35 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -257,12 +257,11 @@ cvorbis_read (DB_fileinfo_t *_info, char *bytes, int size) {
}
else {
if (info->ptrack && info->currentsample - info->last_comment_update > 5 * _info->samplerate) {
- int idx = deadbeef->pl_get_idx_of (info->ptrack);
- if (idx >= 0) {
+ if (info->ptrack) {
info->last_comment_update = info->currentsample;
vorbis_comment *vc = ov_comment (&info->vorbis_file, -1);
update_vorbis_comments (info->ptrack, vc);
- deadbeef->sendmessage (M_TRACKCHANGED, 0, idx, 0);
+ deadbeef->plug_trigger_event_trackinfochanged (info->ptrack);
}
else {
info->ptrack = NULL;