From f14b55575cb440d5e9607e0a9ca423392fad229c Mon Sep 17 00:00:00 2001 From: Seunghun Lee Date: Wed, 20 Jun 2018 16:25:22 +0900 Subject: [PATCH] video: Don't pass a null argument to tdm_layer_get_capabilities(). Change-Id: I3cfdf3800b353c7c9834b5025ad56454bbc99269 --- src/bin/e_comp_wl_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/e_comp_wl_video.c b/src/bin/e_comp_wl_video.c index e02b047..01d680b 100644 --- a/src/bin/e_comp_wl_video.c +++ b/src/bin/e_comp_wl_video.c @@ -348,6 +348,9 @@ _e_video_tdm_output_has_video_layer(tdm_output *toutput) { /* get the first suitable layer */ layer = _e_video_tdm_video_layer_get(toutput); + if (!layer) + return EINA_FALSE; + tdm_layer_get_capabilities(layer, &lyr_capabilities); if (lyr_capabilities & TDM_LAYER_CAPABILITY_VIDEO) return EINA_TRUE; -- 2.7.4