diff --git a/src/gstducati.c b/src/gstducati.c
index 02d8f775c1700d49da8356a1268e28e6a70a6db5..54aebcfea7607e42cd486674dc9af1a9686fe18c 100644 (file)
--- a/src/gstducati.c
+++ b/src/gstducati.c
#include "gstducativp6dec.h"
#include "gstducativp7dec.h"
#include "gstducatirvdec.h"
+#if HAVE_ENCODERS
#include "gstducatih264enc.h"
#include "gstducatimpeg4enc.h"
+#endif
GST_DEBUG_CATEGORY (gst_ducati_debug);
GST_TYPE_DUCATIVP7DEC) &&
gst_element_register (plugin, "ducatirvdec", GST_RANK_PRIMARY,
GST_TYPE_DUCATIRVDEC) &&
+#ifdef HAVE_ENCODERS
gst_element_register (plugin, "ducatih264enc", GST_RANK_PRIMARY + 1,
GST_TYPE_DUCATIH264ENC) &&
gst_element_register (plugin, "ducatimpeg4enc", GST_RANK_PRIMARY + 1,
- GST_TYPE_DUCATIMPEG4ENC);
+ GST_TYPE_DUCATIMPEG4ENC) &&
+#endif
+ TRUE;
}
/* PACKAGE: this is usually set by autotools depending on some _INIT macro