summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Xv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Xv.c b/src/Xv.c
index dc1e5f9..8e4bc17 100644
--- a/src/Xv.c
+++ b/src/Xv.c
@@ -192,6 +192,10 @@ XvQueryAdaptors(
}
_XRead(dpy, buffer, (long) size);
}
+ else if (rep.num_adaptors != 0) {
+ status = XvBadReply;
+ goto out;
+ }
/* GET INPUT ADAPTORS */