summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-01-10 21:59:57 +0100
committerGravatar waker <wakeroid@gmail.com>2011-01-10 21:59:57 +0100
commit044ea1026497f2bed04a3edda2603447cefaf97d (patch)
tree0bd780a9b7eb2e3790dd2cf057f99b40b4ca598d /plugins/mpgmad
parent52eb5a8bc278093e4a56433b07bc9d797f0e3a5b (diff)
fixed crash when adding mp3 to playlist
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 841eef50..3bec56ff 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -1218,6 +1218,7 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
/*int v1err = */deadbeef->junk_id3v1_read (it, fp);
deadbeef->pl_add_meta (it, "title", NULL);
+ buffer.it = it;
cmp3_set_extra_properties (&buffer);
deadbeef->pl_set_item_duration (it, buffer.duration);