From 1c328c9601ff4d9771ba1bf99f0f42c3caf32297 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 11 Jan 2010 20:41:38 +0100 Subject: runtime linking of playlist tracks to decoder plugins is done via strings instead of pointers (to allow easy unloading of decoders) --- cgme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cgme.c') diff --git a/cgme.c b/cgme.c index 26e2e027..f89f9175 100644 --- a/cgme.c +++ b/cgme.c @@ -114,7 +114,7 @@ cgme_insert (DB_playItem_t *after, const char *fname) { const char *ret = gme_track_info (emu, &inf, i); if (!ret) { 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); char str[1024]; if (inf.song[0]) { -- cgit v1.2.3