summaryrefslogtreecommitdiff
path: root/src/wfdapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wfdapi.c')
-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);