summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-11 20:41:38 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-11 20:41:38 +0100
commit1c328c9601ff4d9771ba1bf99f0f42c3caf32297 (patch)
tree1b960a7586346ddb4d3b7babe9e31733454cf337 /plugins/mpgmad
parent8f873b3b3a992da897a029a1cf19b32168440f39 (diff)
runtime linking of playlist tracks to decoder plugins is done via strings instead of pointers (to allow easy unloading of decoders)
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 0dec44d0..49754dfa 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -956,7 +956,7 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
}
if (fp->vfs->streaming) {
DB_playItem_t *it = deadbeef->pl_item_alloc ();
- it->decoder = &plugin;
+ it->decoder_id = deadbeef->plug_get_decoder_id (plugin.id);
it->fname = strdup (fname);
deadbeef->fclose (fp);
deadbeef->pl_add_meta (it, "title", NULL);
@@ -1020,7 +1020,7 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
}
}
DB_playItem_t *it = deadbeef->pl_item_alloc ();
- it->decoder = &plugin;
+ it->decoder_id = deadbeef->plug_get_decoder_id (plugin.id);
it->fname = strdup (fname);
deadbeef->rewind (fp);