context: Add warning about index mismatch when allocating source buffers
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
This commit is contained in:
committed by
Paul Kocialkowski
parent
a412ee8b42
commit
26536a0d8b
@@ -108,6 +108,9 @@ VAStatus SunxiCedrusCreateContext(VADriverContextP context,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (surface_object->destination_index != i)
|
||||||
|
sunxi_cedrus_log("Mismatch between source index %d and destination index %d for surface %d\n", i, surface_object->destination_index, surfaces_ids[i]);
|
||||||
|
|
||||||
rc = v4l2_request_buffer(driver_data->video_fd, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, i, &length, &offset);
|
rc = v4l2_request_buffer(driver_data->video_fd, V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, i, &length, &offset);
|
||||||
if (rc < 0) {
|
if (rc < 0) {
|
||||||
status = VA_STATUS_ERROR_ALLOCATION_FAILED;
|
status = VA_STATUS_ERROR_ALLOCATION_FAILED;
|
||||||
|
|||||||
Reference in New Issue
Block a user