diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-12 09:13:17 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-12 09:13:17 +0100 |
commit | 9ae08cc0f9bed7a62801e2526537fcffe14e53a9 (patch) | |
tree | 7659e03b3941da6a6e492d1ef6c7190aaa7cc965 /plugins | |
parent | f6fdf11dcbc98fa1477bcfc5ae7317a5b2e75ede (diff) |
ported gme and dumb to new api
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtkui/callbacks.c | 2 | ||||
-rw-r--r-- | plugins/mpgmad/mpgmad.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/gtkui/callbacks.c b/plugins/gtkui/callbacks.c index 09b5b03d..0b6a0a9e 100644 --- a/plugins/gtkui/callbacks.c +++ b/plugins/gtkui/callbacks.c @@ -1005,7 +1005,7 @@ seekbar_draw (GtkWidget *widget) { return; } DB_playItem_t *trk = deadbeef->streamer_get_playing_track (); - DB_decoder_t *dec = deadbeef->streamer_get_current_decoder (); + DB_fileinfo_t *dec = deadbeef->streamer_get_current_decoder (); if (!dec || deadbeef->pl_get_item_duration (trk) < 0) { clearlooks_rounded_rectangle (cr, 2, widget->allocation.height/2-4, widget->allocation.width-4, 8, 4, 0xff); theme_set_cairo_source_rgb (cr, COLO_SEEKBAR_FRONT); diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c index b67fbc6a..aca849a7 100644 --- a/plugins/mpgmad/mpgmad.c +++ b/plugins/mpgmad/mpgmad.c @@ -972,7 +972,7 @@ cmp3_insert (DB_playItem_t *after, const char *fname) { } if (fp->vfs->streaming) { DB_playItem_t *it = deadbeef->pl_item_alloc (); - it->decoder_id = deadbeef->plug_get_decoder_id (plugin.id); + it->decoder_id = deadbeef->plug_get_decoder_id (plugin.plugin.id); it->fname = strdup (fname); deadbeef->fclose (fp); deadbeef->pl_add_meta (it, "title", NULL); @@ -1037,7 +1037,7 @@ cmp3_insert (DB_playItem_t *after, const char *fname) { } } DB_playItem_t *it = deadbeef->pl_item_alloc (); - it->decoder_id = deadbeef->plug_get_decoder_id (plugin.id); + it->decoder_id = deadbeef->plug_get_decoder_id (plugin.plugin.id); it->fname = strdup (fname); deadbeef->rewind (fp); @@ -1070,6 +1070,7 @@ static DB_decoder_t plugin = { .plugin.version_major = 0, .plugin.version_minor = 1, .plugin.type = DB_PLUGIN_DECODER, + .plugin.id = "stdmpg", .plugin.name = "MPEG decoder", .plugin.descr = "MPEG v1/2 layer1/2/3 decoder based on libmad", .plugin.author = "Alexey Yakovenko", @@ -1083,7 +1084,6 @@ static DB_decoder_t plugin = { .seek_sample = cmp3_seek_sample, .insert = cmp3_insert, .exts = exts, - .id = "stdmpg", .filetypes = filetypes }; |