summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-04-05 10:50:20 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-04-05 10:50:20 +0200
commit1f5986eb53b26a4d05be63796c24184d73b62656 (patch)
tree9e11913c3f5ecb43361902c8e32deb6e66d081d7
parent8cd7bb91627df40fded2acb4aad02e462346ece3 (diff)
wfdapi: CreateEvent: allow PIPELINE_BIND_QUEUE_SIZE attrib
-rw-r--r--src/wfdapi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/wfdapi.c b/src/wfdapi.c
index c6ff5bc..96bb6b6 100644
--- a/src/wfdapi.c
+++ b/src/wfdapi.c
@@ -219,7 +219,6 @@ wfdCreateEvent(WFDDevice device_handle,
struct wfd_device *device;
struct wfd_event *event;
WFDPort event_handle;
- WFDErrorCode error;
DPRINT(("wfdCreateEvent(%08x,%p)", device_handle, attribList));
@@ -228,8 +227,11 @@ wfdCreateEvent(WFDDevice device_handle,
return WFD_INVALID_HANDLE;
if (attribList != NULL && attribList[0] != WFD_NONE) {
- wfd_device_set_error(device, WFD_ERROR_BAD_ATTRIBUTE);
- return WFD_INVALID_HANDLE;
+ if (attribList[0] != WFD_EVENT_PIPELINE_BIND_QUEUE_SIZE ||
+ attribList[2] != WFD_NONE) {
+ wfd_device_set_error(device, WFD_ERROR_BAD_ATTRIBUTE);
+ return WFD_INVALID_HANDLE;
+ }
}
event = wfd_create_event(device, attribList);