summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_smjpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_smjpeg.c')
-rw-r--r--src/demuxers/demux_smjpeg.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/demuxers/demux_smjpeg.c b/src/demuxers/demux_smjpeg.c
index 2ad210a00..2100959ee 100644
--- a/src/demuxers/demux_smjpeg.c
+++ b/src/demuxers/demux_smjpeg.c
@@ -21,7 +21,7 @@
* For more information on the SMJPEG file format, visit:
* http://www.lokigames.com/development/smjpeg.php3
*
- * $Id: demux_smjpeg.c,v 1.13 2002/09/05 22:18:53 mroi Exp $
+ * $Id: demux_smjpeg.c,v 1.14 2002/09/10 15:07:14 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -553,17 +553,9 @@ static char *demux_smjpeg_get_mimetypes(void) {
return NULL;
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_smjpeg_t *this;
- if (iface != 10) {
- printf (_("demux_smjpeg: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin. Installing current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = (demux_smjpeg_t *) xine_xmalloc(sizeof(demux_smjpeg_t));
this->config = xine->config;
this->xine = xine;
@@ -589,3 +581,12 @@ static void *init_demuxer_plugin(int iface, xine_t *xine) {
return &this->demux_plugin;
}
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "smjpeg", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};