summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 20:04:19 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 20:04:19 +0100
commit456f5a5a8bc07ba783cddbaca3716add185a5e7c (patch)
tree323416b38b4f6e6c9210782d9684c198ded4b2b6 /src
parent899f195796be5218dd49ae7af1f50132cddc46ab (diff)
downloadxine-lib-456f5a5a8bc07ba783cddbaca3716add185a5e7c.tar.gz
xine-lib-456f5a5a8bc07ba783cddbaca3716add185a5e7c.tar.bz2
Use xine_xmalloc rather than setting everything at zero by hand.
Diffstat (limited to 'src')
-rw-r--r--src/demuxers/ebml.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/demuxers/ebml.c b/src/demuxers/ebml.c
index 218046cf5..532f41ebf 100644
--- a/src/demuxers/ebml.c
+++ b/src/demuxers/ebml.c
@@ -41,20 +41,10 @@
ebml_parser_t *new_ebml_parser (xine_t *xine, input_plugin_t *input) {
ebml_parser_t *ebml;
- ebml = malloc(sizeof(ebml_parser_t));
+ ebml = xine_xmalloc(sizeof(ebml_parser_t));
ebml->xine = xine;
ebml->input = input;
- ebml->version = 0;
- ebml->read_version = 0;
- ebml->max_id_len = 0;
- ebml->max_size_len = 0;
- ebml->doctype = NULL;
- ebml->doctype_version = 0;
- ebml->doctype_read_version = 0;
-
- ebml->level = 0;
-
return ebml;
}