From 9455c47fad09e283ba22b584d11d298b28f11488 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 17 Jul 2002 18:36:44 +0000 Subject: initialize size to avoid simple mistakes CVS patchset: 2305 CVS date: 2002/07/17 18:36:44 --- src/xine-engine/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xine-engine/buffer.c b/src/xine-engine/buffer.c index 5b9c83dff..4d1c50805 100644 --- a/src/xine-engine/buffer.c +++ b/src/xine-engine/buffer.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: buffer.c,v 1.17 2002/07/14 22:27:24 miguelfreitas Exp $ + * $Id: buffer.c,v 1.18 2002/07/17 18:36:44 miguelfreitas Exp $ * * * contents: @@ -107,6 +107,7 @@ static buf_element_t *buffer_pool_alloc (fifo_buffer_t *this) { /* set sane values to the newly allocated buffer */ buf->content = buf->mem; /* 99% of demuxers will want this */ buf->pts = 0; + buf->size = 0; buf->input_pos = buf->input_length = buf->input_time = 0; buf->decoder_flags = 0; -- cgit v1.2.3