diff options
author | waker <wakeroid@gmail.com> | 2011-04-29 22:38:31 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-29 22:38:31 +0200 |
commit | 20627955d1184b5f07b8f7910a59f15cdc4802c8 (patch) | |
tree | afc2111b9d3be287d3e82dcc54b23f84c88e4183 /plugins/wildmidi | |
parent | cec677f6022983afbc144a52eff8a719a1086577 (diff) |
changed some API entry points to make it possible working with specific playlists, and not just the current one
Diffstat (limited to 'plugins/wildmidi')
-rw-r--r-- | plugins/wildmidi/wildmidiplug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wildmidi/wildmidiplug.c b/plugins/wildmidi/wildmidiplug.c index 5ddb3c97..0db8b525 100644 --- a/plugins/wildmidi/wildmidiplug.c +++ b/plugins/wildmidi/wildmidiplug.c @@ -107,7 +107,7 @@ wmidi_seek (DB_fileinfo_t *_info, float time) { } DB_playItem_t * -wmidi_insert (DB_playItem_t *after, const char *fname) { +wmidi_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { DB_playItem_t *it = NULL; midi *m = WildMidi_Open (fname); @@ -121,7 +121,7 @@ wmidi_insert (DB_playItem_t *after, const char *fname) { deadbeef->pl_add_meta (it, "title", NULL); deadbeef->pl_set_item_duration (it, inf->approx_total_samples / 44100.f); deadbeef->pl_add_meta (it, ":FILETYPE", "MID"); - after = deadbeef->pl_insert_item (after, it); + after = deadbeef->plt_insert_item (plt, after, it); deadbeef->pl_item_unref (it); WildMidi_Close (m); return after; |