context: Add warning about index mismatch when allocating source buffers

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
This commit is contained in:
Paul Kocialkowski
2018-04-27 21:15:22 +02:00
committed by Paul Kocialkowski
parent a412ee8b42
commit 26536a0d8b
+3
View File
@@ -108,6 +108,9 @@ VAStatus SunxiCedrusCreateContext(VADriverContextP context,
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);
if (rc < 0) {
status = VA_STATUS_ERROR_ALLOCATION_FAILED;