Added usage of the new xine_register_plugins() call.

This commit is contained in:
Robert Osfield
2005-02-13 16:35:52 +00:00
parent 5aa2f1e7e7
commit 912cb9386e
3 changed files with 18 additions and 1 deletions

View File

@@ -183,7 +183,9 @@ class ReaderWriterXine : public osgDB::ReaderWriter
xine_init(_xine);
register_plugin(_xine, "/usr/local/lib/osgPlugins", "osgdb_xine.so");
register_rgbout_plugin(_xine);
// register_plugin(_xine, "/usr/local/lib/osgPlugins", "osgdb_xine.so");
}

View File

@@ -2773,3 +2773,11 @@ plugin_info_t xine_plugin_info[] =
{ PLUGIN_VIDEO_OUT, 20, "rgb", XINE_VERSION_CODE, &vo_info_rgbout, init_class},
{ PLUGIN_NONE, 0, "", 0, NULL, NULL}
};
void register_rgbout_plugin(xine_t *self)
{
fprintf(stderr,"register_rgbout_plugin...\n");
xine_register_plugins(self, xine_plugin_info);
fprintf(stderr,"done register_rgbout_plugin\n");
}

View File

@@ -27,6 +27,9 @@
#ifndef VIDEO_OUT_RGB_H
#define VIDEO_OUT_RGB_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
@@ -176,9 +179,13 @@ typedef struct
} rgbout_packer_t;
void register_rgbout_plugin(xine_t *self);
#define XINE_VISUAL_TYPE_RGBOUT 100
#ifdef __cplusplus
}
#endif
#endif /* VIDEO_OUT_RGB_H */