vpp: don't overwrite on_pending state when enable vd layer [1/1]
authorBrian Zhu <brian.zhu@amlogic.com>
Tue, 16 Apr 2019 18:35:27 +0000 (02:35 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 18 Apr 2019 02:11:42 +0000 (19:11 -0700)
commit5119e0f5242da5386c21873492232f5babc7e86b
treeb684bd779110a9f168a9c13fbb25f33c7348f53a
parente04e7b051dc25d3ee2700000ff0853eae4b57b10
vpp: don't overwrite on_pending state when enable vd layer [1/1]

PD#OTT-3244

Problem:
When vd layer state is on_pending, calling enable videolayer
function will overwrite the state. Then it will not enable video
layer really.

Solution:
Add the judgement to check if the state is on_pending.

Verify:
verified on W400

Change-Id: I0513a6610fdb108bec05858c7f6c7976be5e7edb
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
drivers/amlogic/media/video_sink/video.c