summaryrefslogtreecommitdiff
path: root/plugins/vorbis/vorbis.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/vorbis/vorbis.c')
-rw-r--r--plugins/vorbis/vorbis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index 8a32bd86..31e252eb 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -110,7 +110,7 @@ cvorbis_init (DB_playItem_t *it) {
cur_bit_stream = -1;
ptrack = it;
- file = deadbeef->fopen (it->fname);
+ file = plugin.info.file = deadbeef->fopen (it->fname);
if (!file) {
return -1;
}
@@ -191,6 +191,7 @@ cvorbis_init (DB_playItem_t *it) {
static void
cvorbis_free (void) {
+ plugin.info.file = NULL;
if (file) {
ptrack = NULL;
ov_clear (&vorbis_file);