libdvbv5: fix dvb_parse_descriptors and make dvb_desc_init private
authorAndré Roth <neolynx@gmail.com>
Tue, 25 Mar 2014 18:19:57 +0000 (15:19 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Mar 2014 16:58:53 +0000 (13:58 -0300)
commitbe45253e3894248d79d8561deb0b7f38232736ee
tree2878f8cbf336533118a8335210f4d67ae06e27f4
parent993f793e7f0288486f302d758800ca298168ed41
libdvbv5: fix dvb_parse_descriptors and make dvb_desc_init private

- set list pointer to NULL in case of an error
- improve size checking
- dvb_desc_init is used only internal, remove from header

[m.chehab@samsung.com: revert the change from calloc() to malloc()]
Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/include/libdvbv5/descriptors.h
lib/libdvbv5/descriptors.c