[vlc-commits] video_output/video_output: ThreadChangeFilters: use likely
Filip Roséen
git at videolan.org
Thu May 18 18:09:51 CEST 2017
vlc | branch: master | Filip Roséen <filip at atch.se> | Thu May 18 12:19:36 2017 +0200| [9d1575cf6ca13323a11b6dd28b5e50c3b69c6a43] | committer: Rémi Denis-Courmont
video_output/video_output: ThreadChangeFilters: use likely
Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d1575cf6ca13323a11b6dd28b5e50c3b69c6a43
---
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"))
More information about the vlc-commits
mailing list