Skip to content

Commit 58a2e8f

Browse files
author
qiyao.zhou
committed
vpp: Modify vframe epoll event [1/1]
PD#SWPL-8850 Problem: too many print when channel change. Solution: Modify vframe epoll event flow to avoid same event. Verify: verify on marconi. Change-Id: Iefbd190c0280276bf941c48bf99706a0f2573df1 Signed-off-by: qiyao.zhou <qiyao.zhou@amlogic.com>
1 parent 9455ab7 commit 58a2e8f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • drivers/amlogic/media/video_sink

drivers/amlogic/media/video_sink/video.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4059,8 +4059,9 @@ static void vsync_toggle_frame(struct vframe_s *vf, int line)
40594059
int iret;
40604060

40614061
last_process_3d_type = process_3d_type;
4062-
if ((cur_dispbuf->width != vf->width) ||
4063-
(cur_dispbuf->height != vf->height)) {
4062+
if (!cur_dispbuf ||
4063+
((cur_dispbuf->width != vf->width) ||
4064+
(cur_dispbuf->height != vf->height))) {
40644065
atomic_inc(&video_sizechange);
40654066
wake_up_interruptible(&amvideo_sizechange_wait);
40664067
}

0 commit comments

Comments
 (0)