summaryrefslogtreecommitdiff
path: root/plugins/vorbis
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-08 12:22:39 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-08 12:22:39 +0100
commit16f075f95d55466856cf7f3fdea2c503b2fcd7cf (patch)
treead8c457b89cd4b112b4720f186af2a26c6a037ca /plugins/vorbis
parent9743e5efa30faa3eedaadc534d821a29ba41290e (diff)
now it's possible to interrupt hanging file operations (e.g. slow http)
Diffstat (limited to 'plugins/vorbis')
-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);