video: Fix double cropping source/output region of tdm 10/252610/1 accepted/tizen/unified/20210201.055415 submit/tizen/20210130.024922
authorSeunghun Lee <shiin.lee@samsung.com>
Sat, 30 Jan 2021 01:33:10 +0000 (10:33 +0900)
committerSeunghun Lee <shiin.lee@samsung.com>
Sat, 30 Jan 2021 02:07:00 +0000 (11:07 +0900)
commita5d50f45e052b2c52980d6c0b30fba46b5251a87
tree6c52a3400018fa5f77ce36a720aae41ff05bb7ad
parent32a04d070b56d884e8813b346e293b1701b761f9
video: Fix double cropping source/output region of tdm

Cropping an already cropped source/output region is an error.
So, this change makes updating tdm config happen once during render job.

So far this has been no problem since wl_client didn't try to set its
output region beyond the screen. However, once wl_client tried to do
that, the problem came out because of the double cropping.

More specifically, source region was a problem. source region was
cropped and updated once during applying viewport, but it was cropped
and updated again with already cropped source region during applying
map.

Change-Id: Ia8efb27a3af66eda5564f166a9ea734d21a93cf1
src/bin/video/iface/e_video_hwc.c