Hello,

I was playing around with a custom post plugin. It is running under version 1.1.19.
The problem I'm having is that although it returns a non-zero value from it's init function, xine complains:

load_plugins: post plugin lastpts failed to instantiate itself
load_plugins: no post plugin named lastpts found

The pertinent code from the plugin is:


typedef struct lastpts_class_s {
  post_class_t   post_class;
  xine_t         *xine;
}lastpts_class_t;

void *lastpts_init_plugin(xine_t *xine, void *data)
{

  xine_log(xine, XINE_LOG_PLUGIN, "Trying to init plugin here!\n");

  lastpts_class_t *xineplug = (lastpts_class_t *) calloc(1, sizeof(lastpts_class_t));

  xineplug->xine = xine;
  xineplug->post_class.open_plugin     = lastpts_open_plugin;
  xineplug->post_class.get_identifier      = get_identifier;
  xineplug->post_class.get_description     = get_description;
  xineplug->post_class.dispose = lastpts_class_dispose;

  xine_log(xine, XINE_LOG_PLUGIN, "Returned %p from init plugin!\n", (void *)xineplug);

  return xineplug;
}

The output from my frontend when verbosity is set to 1 is:

Trying to init plugin here2!
Returned 0x916ed40 from init plugin!
load_plugins: post plugin lastpts failed to instantiate itself
load_plugins: no post plugin named lastpts found

Is there something I am missing here?