mm-video: vidc: Fix race condition in resolution change
There is following race condition when sufficient resources
event is received from firmware:
| |
| |
1. Driver receives FBD |
for CIF resolution |
| |
| |
2. Openmax component DQs |
CIF FBD |
| 5. Driver receives
| Sufficient resources
3. Openmax queries the driver for QCIF.
for heigh/width |
| |
| |
4. Openmax gets Crop info |
from FBD which is CIF |
If the event occur in order: 1, 2, 5, 3, 4 then Openmax component
ends up having QCIF height/width but CIF crop which is invalid.
This change fixes the issue by using same height width as crop for
scenarios where sufficient resources is received in the middle of
playback.
Change-Id: I731c1ea700cfa0a0265be472ef0660e903856e43
CRs-Fixed: 469361
1 file changed