forked from marfrit/libva-v4l2-request-fourier
surface: Shortcut when the surface is already ready
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
+4
-1
@@ -153,7 +153,10 @@ VAStatus SunxiCedrusSyncSurface(VADriverContextP context,
|
|||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (surface_object->status == VASurfaceSkipped) {
|
if (surface_object->status == VASurfaceReady) {
|
||||||
|
status = VA_STATUS_SUCCESS;
|
||||||
|
goto complete;
|
||||||
|
} else if (surface_object->status == VASurfaceSkipped) {
|
||||||
status = VA_STATUS_ERROR_UNKNOWN;
|
status = VA_STATUS_ERROR_UNKNOWN;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user