summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-09 20:49:12 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-09 20:54:03 +0100
commitf26c90bb66c1aa0d8ec7ddcffada1edf1a12bf92 (patch)
treebc16badfa4d86e1ff4a6fbdf8125017a5498b163 /plugins/mpgmad
parent418960f37fe1d615b420f0b9ba9afcd7ba5434c1 (diff)
support for interruption of http streaming at any time
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index 9bef2bc8..0dec44d0 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -516,7 +516,7 @@ cmp3_scan_stream (buffer_t *buffer, int sample) {
static int
cmp3_init (DB_playItem_t *it) {
memset (&buffer, 0, sizeof (buffer));
- buffer.file = plugin.info.file = deadbeef->fopen (it->fname);
+ buffer.file = deadbeef->fopen (it->fname);
if (!buffer.file) {
return -1;
}
@@ -840,7 +840,6 @@ cmp3_decode_float32 (void) {
static void
cmp3_free (void) {
- plugin.info.file = NULL;
if (buffer.file) {
deadbeef->fclose (buffer.file);
buffer.file = NULL;