From f533f9fdb837f6ccf5b9dd7443e5d5ed4ee02550 Mon Sep 17 00:00:00 2001 From: jintao xu Date: Wed, 18 Dec 2019 11:13:46 +0800 Subject: [PATCH] video_composer: fix black when hdmi hou-plug [1/1] PD#SWPL-17376 Problem: black when hdmi hou-plug Solution: init last_vf when enable video_composer Verify: U212 Change-Id: I3ca03d0bf737ce142e1d25de8dd83986645a9870 Signed-off-by: jintao xu --- .../media/video_processor/video_composer/video_composer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/video_processor/video_composer/video_composer.c b/drivers/amlogic/media/video_processor/video_composer/video_composer.c index 075a08b4c2d4..ec9ddef9febd 100644 --- a/drivers/amlogic/media/video_processor/video_composer/video_composer.c +++ b/drivers/amlogic/media/video_processor/video_composer/video_composer.c @@ -1541,7 +1541,7 @@ static void vc_vf_put(struct vframe_s *vf, void *op_arg) dev->drop_frame_count = 0; } else { dev->drop_frame_count += repeat_count + 1; - vc_print(dev->index, PRINT_PERFORMANCE, + vc_print(dev->index, PRINT_PERFORMANCE | PRINT_FENCE, "put: drop repeat_count=%d\n", repeat_count); } @@ -1673,6 +1673,7 @@ static int video_composer_init(struct composer_dev *dev) dev->drop_frame_count = 0; dev->is_sideband = false; dev->need_empty_ready = false; + dev->last_file = NULL; init_completion(&dev->task_done); disable_video_layer(dev, 2); -- 2.20.1