File libva-compile-warning-fixes.diff of Package libva
diff --git a/test/v4l_h264/decode/TCPSocketServer.cpp b/test/v4l_h264/decode/TCPSocketServer.cpp
index ad33d77..287bf27 100644
--- a/test/v4l_h264/decode/TCPSocketServer.cpp
+++ b/test/v4l_h264/decode/TCPSocketServer.cpp
@@ -150,7 +150,7 @@ ssize_t TCPSocketServer::send(const void *buffer, const int &bufferLen) throw (s
ssize_t TCPSocketServer::send(const string &message) throw (std::runtime_error)
{
- send(message.c_str(), message.length());
+ return send(message.c_str(), message.length());
}
diff --git a/va/egl/va_egl.c b/va/egl/va_egl.c
index 48ff7a1..71904a0 100644
--- a/va/egl/va_egl.c
+++ b/va/egl/va_egl.c
@@ -56,6 +56,9 @@
#include "va_egl_private.h"
#include "va_egl_impl.h"
+#include <stdlib.h>
+VADisplay vaGetDisplay(Display *dpy);
+
#define CTX(dpy) (((VADisplayContextP)dpy)->pDriverContext)
#define CHECK_DISPLAY(dpy) if( !vaDisplayIsValid(dpy) ) { return VA_STATUS_ERROR_INVALID_DISPLAY; }