vp8: move #ifdef HAVE_VP8_ENCODER/DECODER

Otherwise we'll try including e.g. <vpx/vp8cx.h> which doesn't exist.
This commit is contained in:
Philip Jägenstedt 2010-05-21 08:13:06 +02:00 committed by Sebastian Dröge
parent 1e5f371650
commit 54e6f65ef3
2 changed files with 4 additions and 4 deletions

View file

@ -24,6 +24,8 @@
#include "config.h" #include "config.h"
#endif #endif
#ifdef HAVE_VP8_DECODER
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/gstbasevideodecoder.h> #include <gst/video/gstbasevideodecoder.h>
#include <gst/video/gstbasevideoutils.h> #include <gst/video/gstbasevideoutils.h>
@ -44,8 +46,6 @@
#include "gstvp8utils.h" #include "gstvp8utils.h"
#ifdef HAVE_VP8_DECODER
GST_DEBUG_CATEGORY_STATIC (gst_vp8dec_debug); GST_DEBUG_CATEGORY_STATIC (gst_vp8dec_debug);
#define GST_CAT_DEFAULT gst_vp8dec_debug #define GST_CAT_DEFAULT gst_vp8dec_debug

View file

@ -24,6 +24,8 @@
#include "config.h" #include "config.h"
#endif #endif
#ifdef HAVE_VP8_ENCODER
#include <gst/gst.h> #include <gst/gst.h>
#include <gst/video/gstbasevideoencoder.h> #include <gst/video/gstbasevideoencoder.h>
#include <gst/video/gstbasevideoutils.h> #include <gst/video/gstbasevideoutils.h>
@ -45,8 +47,6 @@
#include "gstvp8utils.h" #include "gstvp8utils.h"
#ifdef HAVE_VP8_ENCODER
GST_DEBUG_CATEGORY_STATIC (gst_vp8enc_debug); GST_DEBUG_CATEGORY_STATIC (gst_vp8enc_debug);
#define GST_CAT_DEFAULT gst_vp8enc_debug #define GST_CAT_DEFAULT gst_vp8enc_debug