summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Yuan <shengquan.yuan@intel.com>2009-11-20 16:02:14 +0800
committerAustin Yuan <shengquan.yuan@intel.com>2009-11-20 16:02:14 +0800
commit2135de7e7c18e3668c2a8f9fc15db6e671fab8df (patch)
tree4343fccee9a1b293a5407d037a6af50b10b6a236
parent4054d2e60ec0a92fa61bfc9099a95e6cfa0d15c3 (diff)
Added VA_STATUS_ERROR_SURFACE_IN_DISPLAYING
Overlay may be used for vaPutSurface, in this case, vaSyncSurface can return VA_STATUS_ERROR_SURFACE_IN_DISPLAYING to indication a failure Signed-off-by: Austin Yuan <shengquan.yuan@intel.com>
-rw-r--r--src/va.c2
-rwxr-xr-xsrc/va.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/va.c b/src/va.c
index 2eaa966..6bc9c06 100644
--- a/src/va.c
+++ b/src/va.c
@@ -313,6 +313,8 @@ const char *vaErrorStr(VAStatus error_status)
return "resolution not supported";
case VA_STATUS_ERROR_UNIMPLEMENTED:
return "the requested function is not implemented";
+ case VA_STATUS_ERROR_SURFACE_IN_DISPLAYING:
+ return "surface is in displaying (may by overlay)" ;
case VA_STATUS_ERROR_UNKNOWN:
return "unknown libva error";
}
diff --git a/src/va.h b/src/va.h
index 97cff9b..525e192 100755
--- a/src/va.h
+++ b/src/va.h
@@ -127,7 +127,8 @@ typedef int VAStatus; /* Return status type from functions */
#define VA_STATUS_ERROR_FLAG_NOT_SUPPORTED 0x00000011
#define VA_STATUS_ERROR_INVALID_PARAMETER 0x00000012
#define VA_STATUS_ERROR_RESOLUTION_NOT_SUPPORTED 0x00000013
-#define VA_STATUS_ERROR_UNIMPLEMENTED 0x00000014
+#define VA_STATUS_ERROR_UNIMPLEMENTED 0x00000014
+#define VA_STATUS_ERROR_SURFACE_IN_DISPLAYING 0x00000015
#define VA_STATUS_ERROR_UNKNOWN 0xFFFFFFFF
/*