[vlc-devel] [PATCH] video_output/video_output: ThreadChangeFilters: use likely
Filip Roséen
filip at atch.se
Thu May 18 12:19:36 CEST 2017
---
src/video_output/video_output.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index e6a36f9828..730b902b24 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -714,7 +714,7 @@ static void ThreadChangeFilters(vout_thread_t *vout,
{
vout_filter_t *e = malloc(sizeof(*e));
- if (e)
+ if (likely(e))
{
free(config_ChainCreate(&e->name, &e->cfg, "deinterlace"));
vlc_array_append(&array_static, e);
@@ -730,7 +730,7 @@ static void ThreadChangeFilters(vout_thread_t *vout,
if (name && *name) {
vout_filter_t *e = malloc(sizeof(*e));
- if (e) {
+ if (likely(e)) {
e->name = name;
e->cfg = cfg;
if (!strcmp(e->name, "postproc"))
--
2.12.2
More information about the vlc-devel
mailing list