video_composer: fix black when hdmi hou-plug [1/1]
authorjintao xu <jintao.xu@amlogic.com>
Wed, 18 Dec 2019 03:13:46 +0000 (11:13 +0800)
committerjintao xu <jintao.xu@amlogic.com>
Wed, 18 Dec 2019 03:43:56 +0000 (11:43 +0800)
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 <jintao.xu@amlogic.com>
drivers/amlogic/media/video_processor/video_composer/video_composer.c

index 075a08b4c2d413b390a460d67e3536d6b4bc916b..ec9ddef9febd6ff8df5eef29057fa2420b5cd686 100644 (file)
@@ -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);