summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2015-09-13 15:45:16 +0200
committerChristian Linhart <chris@demorecorder.com>2015-10-26 17:35:33 +0100
commit306c0a2d9636b6687fb679196b08e53231f11e4e (patch)
treefd88728152447381055e23fda800e0d778eaf49f
parentf4348694c939f83e7135df4779d1bd138836c4db (diff)
xv: struct "EncodingInfo": add explicit align pad
The align pad is needed so that a in list of struct "EncodingInfo", the 32-bit fiels in subsequent "EncodingInfo" are aligned. (the field "encoding" is a 32-bit value, and the field "rate" contains two 32-bit values) The xv-protocol-spec does not contain the protocol encoding. (it specifies the protocol on a higher level) The X-Server uses function "WriteToClient" to write the list "name" to the connection: http://cgit.freedesktop.org/xorg/xserver/tree/Xext/xvdisp.c?id=xorg-server-1.17.99.901#n456 Function "WriteToClient" does 4-byte alignment padding: http://cgit.freedesktop.org/xorg/xserver/tree/os/io.c?id=xorg-server-1.17.99.901#n804 Signed-off-by: Christian Linhart <chris@demorecorder.com> Reviewed-by: Peter Harris <pharris@opentext.com>
-rw-r--r--src/xv.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xv.xml b/src/xv.xml
index 47a05d0..d99711c 100644
--- a/src/xv.xml
+++ b/src/xv.xml
@@ -118,6 +118,7 @@ authorization from the authors.
<list type="char" name="name">
<fieldref>name_size</fieldref>
</list>
+ <pad align="4" />
</struct>
<struct name="Image">