From f26c90bb66c1aa0d8ec7ddcffada1edf1a12bf92 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 9 Jan 2010 20:49:12 +0100 Subject: support for interruption of http streaming at any time --- plugins/mpgmad/mpgmad.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/mpgmad') 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; -- cgit v1.2.3