From: Arnaud Vrac Date: Mon, 17 Jun 2013 19:27:37 +0000 (+0200) Subject: vpx: fix compilation when encoder or decoder headers are not installed X-Git-Tag: 1.1.3~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37458a4a17fad49cd6ff61f4479cec53dba08bf8;p=platform%2Fupstream%2Fgst-plugins-good.git vpx: fix compilation when encoder or decoder headers are not installed https://bugzilla.gnome.org/show_bug.cgi?id=704547 --- diff --git a/ext/vpx/gstvp8dec.h b/ext/vpx/gstvp8dec.h index aff3859..8692f01 100644 --- 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 #include @@ -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 index b235112..206ac02 100644 --- 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 #include @@ -111,4 +117,6 @@ GType gst_vp8_enc_get_type (void); G_END_DECLS +#endif + #endif /* __GST_VP8_ENC_H__ */ diff --git a/ext/vpx/gstvp9dec.h b/ext/vpx/gstvp9dec.h index ae27f7e..8cd69ba 100644 --- a/ext/vpx/gstvp9dec.h +++ b/ext/vpx/gstvp9dec.h @@ -23,6 +23,12 @@ #ifndef __GST_VP9_DEC_H__ #define __GST_VP9_DEC_H__ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef HAVE_VP9_DECODER + #include #include @@ -81,4 +87,6 @@ GType gst_vp9_dec_get_type (void); G_END_DECLS +#endif + #endif /* __GST_VP9_DEC_H__ */ diff --git a/ext/vpx/gstvp9enc.h b/ext/vpx/gstvp9enc.h index 8026d58..b991905 100644 --- a/ext/vpx/gstvp9enc.h +++ b/ext/vpx/gstvp9enc.h @@ -22,6 +22,12 @@ #ifndef __GST_VP9_ENC_H__ #define __GST_VP9_ENC_H__ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef HAVE_VP9_ENCODER + #include #include @@ -110,4 +116,6 @@ GType gst_vp9_enc_get_type (void); G_END_DECLS +#endif + #endif /* __GST_VP9_ENC_H__ */