vpx: fix compilation when encoder or decoder headers are not installed
authorArnaud Vrac <avrac@freebox.fr>
Mon, 17 Jun 2013 19:27:37 +0000 (21:27 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 19 Jul 2013 12:21:28 +0000 (14:21 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=704547

ext/vpx/gstvp8dec.h
ext/vpx/gstvp8enc.h
ext/vpx/gstvp9dec.h
ext/vpx/gstvp9enc.h

index aff385935100a884f4adb1bc01ae79d953f94c7f..8692f01310f64f3d055144008ba48447edf6c891 100644 (file)
 #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__ */
index b2351124df7ce53baee815f4e0943fde1ce43b86..206ac02a47f6b162d797e777e70e3ef5994808cd 100644 (file)
 #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>
 
@@ -111,4 +117,6 @@ GType gst_vp8_enc_get_type (void);
 
 G_END_DECLS
 
+#endif
+
 #endif /* __GST_VP8_ENC_H__ */
index ae27f7e0824e828e8cfbd21aa6cbb6e3c6c488ca..8cd69ba0db0c7f778b626fa42c3f8da64d647c74 100644 (file)
 #ifndef __GST_VP9_DEC_H__
 #define __GST_VP9_DEC_H__
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_VP9_DECODER
+
 #include <gst/gst.h>
 #include <gst/video/gstvideodecoder.h>
 
@@ -81,4 +87,6 @@ GType gst_vp9_dec_get_type (void);
 
 G_END_DECLS
 
+#endif
+
 #endif /* __GST_VP9_DEC_H__ */
index 8026d58083a9456a9764057185cd2cb3d1d0c809..b9919057967ae8feac363d3ea45095b80053925a 100644 (file)
 #ifndef __GST_VP9_ENC_H__
 #define __GST_VP9_ENC_H__
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_VP9_ENCODER
+
 #include <gst/gst.h>
 #include <gst/video/gstvideoencoder.h>
 
@@ -110,4 +116,6 @@ GType gst_vp9_enc_get_type (void);
 
 G_END_DECLS
 
+#endif
+
 #endif /* __GST_VP9_ENC_H__ */