From 80a147491b87c68046e9504ccf025e0760eea9fb Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Sun, 23 Feb 2003 22:28:26 +0000 Subject: Uses nbc_end_of_stream(). CVS patchset: 4274 CVS date: 2003/02/23 22:28:26 --- src/input/input_mms.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/input/input_mms.c b/src/input/input_mms.c index 07aa09b2f..20a61fe95 100644 --- a/src/input/input_mms.c +++ b/src/input/input_mms.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_mms.c,v 1.35 2003/01/31 14:06:13 miguelfreitas Exp $ + * $Id: input_mms.c,v 1.36 2003/02/23 22:28:26 tmattern Exp $ * * mms input plugin based on work from major mms */ @@ -120,10 +120,12 @@ static off_t mms_plugin_read (input_plugin_t *this_gen, this->curpos += n; + if (n != len) + nbc_end_of_stream (this->nbc); return n; } -static buf_element_t *mms_plugin_read_block (input_plugin_t *this_gen, +static buf_element_t *mms_plugin_read_block (input_plugin_t *this_gen, fifo_buffer_t *fifo, off_t todo) { /*mms_input_plugin_t *this = (mms_input_plugin_t *) this_gen; */ buf_element_t *buf = fifo->buffer_pool_alloc (fifo); -- cgit v1.2.3