[vlc-devel] [PATCH 1/2] vout: remove xmalloc
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Apr 25 13:38:09 CEST 2017
---
src/video_output/video_output.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index 8b48a1cc8a..6ea72ba468 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -714,7 +714,10 @@ static void ThreadChangeFilters(vout_thread_t *vout,
char *next = config_ChainCreate(&name, &cfg, current);
if (name && *name) {
- vout_filter_t *e = xmalloc(sizeof(*e));
+ vout_filter_t *e;
+
+ if (!(e = malloc(sizeof(*e))))
+ return ;
e->name = name;
e->cfg = cfg;
if (!strcmp(e->name, "deinterlace") ||
--
2.12.0
More information about the vlc-devel
mailing list