Problems instantiating custom plugin
tony speed <[email protected]>
| Newsgroups | gmane.comp.video.xine.devel |
|---|---|
| Message-ID | <[email protected]> |
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?
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
xine-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-devel