mirror of
https://gitlab.freedesktop.org/xorg/proto/xcbproto.git
synced 2026-05-05 14:38:09 +02:00
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>
This commit is contained in:
parent
f4348694c9
commit
306c0a2d96
1 changed files with 1 additions and 0 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue