summaryrefslogtreecommitdiff
path: root/plugins/mpgmad/mpgmad.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-25 13:02:53 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-25 13:02:53 +0200
commit5a59ffc070744e94675201d6e8164befec6d9813 (patch)
tree8f378ffd01e3488440c320f0bec6e5afc566695e /plugins/mpgmad/mpgmad.c
parent48594c75a15c4d3976efede324ad5bb92e38381e (diff)
removed old curl hacks/workarounds
Diffstat (limited to 'plugins/mpgmad/mpgmad.c')
-rw-r--r--plugins/mpgmad/mpgmad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index b9ac42e2..1a7a8450 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -570,6 +570,7 @@ cmp3_init (DB_playItem_t *it) {
if (!info->buffer.file) {
return NULL;
}
+ info->info.file = info->buffer.file;
deadbeef->pl_item_ref (it);
info->buffer.it = it;
info->info.readpos = 0;
@@ -909,6 +910,7 @@ cmp3_free (DB_fileinfo_t *_info) {
}
deadbeef->fclose (info->buffer.file);
info->buffer.file = NULL;
+ info->info.file = NULL;
mad_synth_finish (&info->synth);
mad_frame_finish (&info->frame);
mad_stream_finish (&info->stream);