summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-07-17 18:36:44 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-07-17 18:36:44 +0000
commit9455c47fad09e283ba22b584d11d298b28f11488 (patch)
treea743284db01c2604e3dc88943eb9eaa3f5b85683 /src
parent4ba751b96f31b7cba5dd51d3f47fad6d565222f1 (diff)
downloadxine-lib-9455c47fad09e283ba22b584d11d298b28f11488.tar.gz
xine-lib-9455c47fad09e283ba22b584d11d298b28f11488.tar.bz2
initialize size to avoid simple mistakes
CVS patchset: 2305 CVS date: 2002/07/17 18:36:44
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/buffer.c3
1 files changed, 2 insertions, 1 deletions
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;