* Moved plugin_init code into main.c

This commit is contained in:
Joshua M. Doe
2010-03-16 17:17:43 -04:00
parent 7fff476758
commit 140ecc0107
3 changed files with 49 additions and 27 deletions

37
gst/main.c Normal file
View File

@@ -0,0 +1,37 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gstvideolevels.h"
#define GST_CAT_DEFAULT gst_nvl_gstnvl_debug
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
/* Register filters that make up the gstgl plugin */
static gboolean
plugin_init ( GstPlugin * plugin )
{
GST_DEBUG_CATEGORY_INIT ( gst_nvl_gstnvl_debug, "nvl", 0, "nvl" );
GST_CAT_INFO ( gst_nvl_gstnvl_debug, "plugin_init" );
GST_CAT_INFO ( gst_nvl_gstnvl_debug, "registering videolevels element" );
if ( !gst_element_register ( plugin, "videolevels", GST_RANK_NONE,
GST_TYPE_VIDEOLEVELS ) ) {
return FALSE;
}
return TRUE;
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
"nvl",
"Plugins of interest to NVL",
plugin_init,
VERSION,
GST_LICENSE,
GST_PACKAGE_NAME,
GST_PACKAGE_ORIGIN
);