[VDPAU] [PATCH] Fix incorrect VdpDecoderRender signature.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Feb 16 11:13:39 PST 2014
VdpPictureInfo is already a pointer to e.g. a VdpPictureInfoH264,
and that is what the function expects, it does not expect
a pointer to a pointer as the signature claims.
This also requires a new typedef to keep the const attribute.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
include/vdpau/vdpau.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/vdpau/vdpau.h b/include/vdpau/vdpau.h
index 58d5083..de2c3f7 100644
--- a/include/vdpau/vdpau.h
+++ b/include/vdpau/vdpau.h
@@ -2648,6 +2648,7 @@ typedef struct {
* question.
*/
typedef void * VdpPictureInfo;
+typedef const void * ConstVdpPictureInfo;
/**
* \brief Picture parameter information for an MPEG 1 or MPEG 2
@@ -3017,7 +3018,7 @@ typedef VdpPictureInfoMPEG4Part2 VdpPictureInfoDivX5;
typedef VdpStatus VdpDecoderRender(
VdpDecoder decoder,
VdpVideoSurface target,
- VdpPictureInfo const * picture_info,
+ ConstVdpPictureInfo picture_info,
uint32_t bitstream_buffer_count,
VdpBitstreamBuffer const * bitstream_buffers
);
--
1.9.0.rc3
More information about the VDPAU
mailing list