diff options
Diffstat (limited to 'ext/dirac/gstdirac.cc')
-rw-r--r-- | ext/dirac/gstdirac.cc | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/ext/dirac/gstdirac.cc b/ext/dirac/gstdirac.cc index 6f5dda21..807be934 100644 --- a/ext/dirac/gstdirac.cc +++ b/ext/dirac/gstdirac.cc @@ -23,22 +23,27 @@ #include <gst/gst.h> -#include "gstdiracdec.h" +GType gst_dirac_dec_get_type (void); +GType gst_dirac_enc_get_type (void); + +GST_DEBUG_CATEGORY (dirac_debug); +#define GST_CAT_DEFAULT dirac_debug static gboolean plugin_init (GstPlugin * plugin) { -#if 0 + GST_DEBUG_CATEGORY_INIT (dirac_debug, "dirac", 0, "Dirac elements"); + if (!gst_element_register (plugin, "diracenc", GST_RANK_NONE, - gst_diracenc_get_type ())) { + gst_dirac_enc_get_type ())) { return FALSE; } -#endif - - if (!gst_element_register (plugin, "diracdec", GST_RANK_PRIMARY, - GST_TYPE_DIRACDEC)) { +#if 0 + if (!gst_element_register (plugin, "diracdec", GST_RANK_MARGINAL, + gst_dirac_dec_get_type ())) { return FALSE; } +#endif return TRUE; } @@ -46,4 +51,5 @@ plugin_init (GstPlugin * plugin) GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, GST_VERSION_MINOR, "dirac", - "Dirac plugin", plugin_init, VERSION, "LGPL", GST_PACKAGE, GST_ORIGIN) + "Dirac plugin", plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, + GST_PACKAGE_ORIGIN) |