#ifdef GST_DEBUG_COLOR
fprintf(stderr,"DEBUG(\033[00;%dm%5d\033[00m:\033[00;%dm%2d\033[00m)\033["
- "%s;%sm%s%s\033[00m %s",
+ "%s;%sm%s%s\033[00m %s\n",
pthread_color,pthread_id,cothread_color,cothread_id,incore?"00":"01",
_gst_category_colors[category],location,elementname,string);
#else
- fprintf(stderr,"DEBUG(%5d:%2d)%s%s %s",
+ fprintf(stderr,"DEBUG(%5d:%2d)%s%s %s\n",
pthread_id,cothread_id,location,elementname,string);
#endif /* GST_DEBUG_COLOR */
gst_plugin_register_statics (main_module);
#ifdef PLUGINS_USE_BUILDDIR
- /* the library directory */
- gst_plugin_default_paths = g_list_prepend (gst_plugin_default_paths,
- PLUGINS_BUILDDIR "/libs/gst");
/* location libgstelements.so */
gst_plugin_default_paths = g_list_prepend (gst_plugin_default_paths,
PLUGINS_BUILDDIR "/gst/elements");
if (_gst_warn_old_registry)
g_warning ("gstplugin: registry needs rebuild: run gst-register\n");
_gst_plugin_paths = g_list_concat (_gst_plugin_paths, gst_plugin_default_paths);
+#ifdef PLUGINS_USE_BUILDDIR
+ /* we prepend the lib dir first for performance reasons */
+ _gst_plugin_paths = g_list_prepend (_gst_plugin_paths, PLUGINS_BUILDDIR "/libs/gst");
+#endif
gst_plugin_load_all ();
/* gst_plugin_unload_all (); */
return;
path = _gst_plugin_paths;
while (path != NULL) {
- GST_INFO (GST_CAT_PLUGIN_LOADING,"loading plugins from %s",(gchar *)path->data);
+ GST_DEBUG (GST_CAT_PLUGIN_LOADING,"loading plugins from %s",(gchar *)path->data);
gst_plugin_load_recurse(path->data,NULL);
path = g_list_next(path);
}
g_return_val_if_fail (filename != NULL, FALSE);
- GST_INFO (GST_CAT_PLUGIN_LOADING, "plugin \"%s\" absolute loading", filename);
+ GST_DEBUG (GST_CAT_PLUGIN_LOADING, "plugin \"%s\" absolute loading", filename);
while (plugins) {
GstPlugin *testplugin = (GstPlugin *)plugins->data;
filename = plugin->filename;
- GST_INFO (GST_CAT_PLUGIN_LOADING, "plugin \"%s\" loading", filename);
+ GST_DEBUG (GST_CAT_PLUGIN_LOADING, "plugin \"%s\" loading", filename);
if (g_module_supported () == FALSE) {
- g_warning("gstplugin: wow, you built this on a platform without dynamic loading???\n");
+ g_warning ("gstplugin: wow, you built this on a platform without dynamic loading???\n");
return FALSE;
}
if (module != NULL) {
if (g_module_symbol (module, "plugin_desc", (gpointer *)&desc)) {
- GST_INFO (GST_CAT_PLUGIN_LOADING,"loading plugin \"%s\"...", filename);
+ GST_DEBUG (GST_CAT_PLUGIN_LOADING,"loading plugin \"%s\"...", filename);
plugin->filename = g_strdup (filename);
plugin = gst_plugin_register_func (desc, plugin, module);
#include <stdlib.h>
#include <stdio.h>
#include <gst/putbits/putbits.h>
+#include <gst/gstplugin.h>
+#include <gst/gstversion.h>
/* initialize buffer, call once before first putbits or alignbits */
void gst_putbits_init(gst_putbits_t *pb)
{
return 8*pb->bytecnt + (8-pb->outcnt);
}
+
+static gboolean
+plugin_init (GModule *module, GstPlugin *plugin)
+{
+ gst_plugin_set_longname (plugin, "Accelerated routines for putting bits into a data stream");
+ return TRUE;
+}
+
+GstPluginDesc plugin_desc = {
+ GST_VERSION_MAJOR,
+ GST_VERSION_MINOR,
+ "gstputbits",
+ plugin_init
+};