From: Arnaud Vrac <avrac@freebox.fr>
Date: Mon, 17 Jun 2013 21:27:37 +0200
Subject: vpx: fix compilation when encoder or decoder headers are not
 installed


diff --git a/ext/vpx/gstvp8dec.h b/ext/vpx/gstvp8dec.h
--- a/ext/vpx/gstvp8dec.h
+++ b/ext/vpx/gstvp8dec.h
@@ -23,6 +23,12 @@
 #ifndef __GST_VP8_DEC_H__
 #define __GST_VP8_DEC_H__
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_VP8_DECODER
+
 #include <gst/gst.h>
 #include <gst/video/gstvideodecoder.h>
 
@@ -81,4 +87,6 @@ GType gst_vp8_dec_get_type (void);
 
 G_END_DECLS
 
+#endif
+
 #endif /* __GST_VP8_DEC_H__ */
diff --git a/ext/vpx/gstvp8enc.h b/ext/vpx/gstvp8enc.h
--- a/ext/vpx/gstvp8enc.h
+++ b/ext/vpx/gstvp8enc.h
@@ -22,6 +22,12 @@
 #ifndef __GST_VP8_ENC_H__
 #define __GST_VP8_ENC_H__
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_VP8_ENCODER
+
 #include <gst/gst.h>
 #include <gst/video/gstvideoencoder.h>
 
@@ -108,4 +114,6 @@ GType gst_vp8_enc_get_type (void);
 
 G_END_DECLS
 
+#endif
+
 #endif /* __GST_VP8_ENC_H__ */
