- deleting whole block instead of fractions now

This commit is contained in:
lordjaxom 2005-04-30 19:41:08 +00:00
parent 32c1bf7c8b
commit 3eec47314d

View File

@ -1,5 +1,5 @@
/* /*
* $Id: streamer.c,v 1.12 2005/04/30 14:59:56 lordjaxom Exp $ * $Id: streamer.c,v 1.13 2005/04/30 19:41:08 lordjaxom Exp $
*/ */
#include <vdr/ringbuffer.h> #include <vdr/ringbuffer.h>
@ -64,12 +64,13 @@ void cStreamdevWriter::Action(void)
offset += written; offset += written;
count -= written; count -= written;
m_Streamer->Del(written); if (count == 0) {
if (count == 0) m_Streamer->Del(offset);
block = NULL; block = NULL;
} }
} }
} }
}
m_Active = false; m_Active = false;
Dprintf("Max. Transmit Blocksize was: %d\n", max); Dprintf("Max. Transmit Blocksize was: %d\n", max);
} }