summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/demuxers/demux_aiff.c22
-rw-r--r--src/demuxers/demux_cda.c22
-rw-r--r--src/demuxers/demux_film.c22
-rw-r--r--src/demuxers/demux_fli.c21
-rw-r--r--src/demuxers/demux_idcin.c22
-rw-r--r--src/demuxers/demux_pes.c22
-rw-r--r--src/demuxers/demux_roq.c21
-rw-r--r--src/demuxers/demux_smjpeg.c21
-rw-r--r--src/demuxers/demux_snd.c22
-rw-r--r--src/demuxers/demux_ts.c24
-rw-r--r--src/demuxers/demux_voc.c21
-rw-r--r--src/demuxers/demux_vqa.c21
-rw-r--r--src/demuxers/demux_wav.c22
-rw-r--r--src/demuxers/demux_wc3movie.c22
14 files changed, 163 insertions, 142 deletions
diff --git a/src/demuxers/demux_aiff.c b/src/demuxers/demux_aiff.c
index 058eb036b..a2af652e1 100644
--- a/src/demuxers/demux_aiff.c
+++ b/src/demuxers/demux_aiff.c
@@ -19,7 +19,7 @@
*
* AIFF File Demuxer by Mike Melanson (melanson@pcisys.net)
*
- * $Id: demux_aiff.c,v 1.4 2002/09/05 22:18:51 mroi Exp $
+ * $Id: demux_aiff.c,v 1.5 2002/09/10 15:07:13 mroi Exp $
*
*/
@@ -475,18 +475,10 @@ static int demux_aiff_get_stream_length (demux_plugin_t *this_gen) {
return this->running_time;
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_aiff_t *this;
- if (iface != 10) {
- printf (_("demux_aiff: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = xine_xmalloc (sizeof (demux_aiff_t));
this->config = xine->config;
this->xine = xine;
@@ -511,3 +503,13 @@ static void *init_demuxer_plugin(int iface, xine_t *xine) {
return (demux_plugin_t *) this;
}
+
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "aiff", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_cda.c b/src/demuxers/demux_cda.c
index f8c6bbbb5..19311f007 100644
--- a/src/demuxers/demux_cda.c
+++ b/src/demuxers/demux_cda.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_cda.c,v 1.23 2002/09/05 22:18:51 mroi Exp $
+ * $Id: demux_cda.c,v 1.24 2002/09/10 15:07:13 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -290,17 +290,9 @@ static int demux_cda_get_stream_length (demux_plugin_t *this_gen) {
/*
*
*/
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_cda_t *this;
- if (iface != 10) {
- printf (_("demux_cda: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = (demux_cda_t *) xine_xmalloc(sizeof(demux_cda_t));
this->config = xine->config;
this->xine = xine;
@@ -320,3 +312,13 @@ 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, "cda", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_film.c b/src/demuxers/demux_film.c
index 66724faf7..79eebcc33 100644
--- a/src/demuxers/demux_film.c
+++ b/src/demuxers/demux_film.c
@@ -21,7 +21,7 @@
* For more information on the FILM file format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_film.c,v 1.24 2002/09/05 22:18:51 mroi Exp $
+ * $Id: demux_film.c,v 1.25 2002/09/10 15:07:14 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -784,17 +784,9 @@ static char *demux_film_get_mimetypes(void) {
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void* data) {
demux_film_t *this;
- if (iface != 10) {
- printf (_("demux_film: 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_film_t *) xine_xmalloc(sizeof(demux_film_t));
this->config = xine->config;
this->xine = xine;
@@ -819,3 +811,13 @@ 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, "film", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_fli.c b/src/demuxers/demux_fli.c
index e16da55fd..c80e36f11 100644
--- a/src/demuxers/demux_fli.c
+++ b/src/demuxers/demux_fli.c
@@ -22,7 +22,7 @@
* avoid while programming a FLI decoder, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_fli.c,v 1.9 2002/09/05 22:18:51 mroi Exp $
+ * $Id: demux_fli.c,v 1.10 2002/09/10 15:07:14 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -401,17 +401,9 @@ static char *demux_fli_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_fli_t *this;
- if (iface != 10) {
- printf ("demux_fli: 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_fli_t *) xine_xmalloc(sizeof(demux_fli_t));
this->config = xine->config;
this->xine = xine;
@@ -434,3 +426,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, "fli", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_idcin.c b/src/demuxers/demux_idcin.c
index 749f3e938..b8f9e328b 100644
--- a/src/demuxers/demux_idcin.c
+++ b/src/demuxers/demux_idcin.c
@@ -63,7 +63,7 @@
* - if any bytes exceed 63, do not shift the bytes at all before
* transmitting them to the video decoder
*
- * $Id: demux_idcin.c,v 1.9 2002/09/05 22:18:51 mroi Exp $
+ * $Id: demux_idcin.c,v 1.10 2002/09/10 15:07:14 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -587,17 +587,9 @@ static char *demux_idcin_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_idcin_t *this;
- if (iface != 10) {
- printf (_("demux_idcin: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = (demux_idcin_t *) xine_xmalloc(sizeof(demux_idcin_t));
this->config = xine->config;
this->xine = xine;
@@ -622,3 +614,13 @@ 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, "idcin", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_pes.c b/src/demuxers/demux_pes.c
index 9259431e7..5500e9c02 100644
--- a/src/demuxers/demux_pes.c
+++ b/src/demuxers/demux_pes.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_pes.c,v 1.37 2002/09/05 22:18:52 mroi Exp $
+ * $Id: demux_pes.c,v 1.38 2002/09/10 15:07:14 mroi Exp $
*
* demultiplexer for mpeg 2 PES (Packetized Elementary Streams)
* reads streams of variable blocksizes
@@ -594,18 +594,10 @@ static int demux_pes_get_stream_length (demux_plugin_t *this_gen) {
return 0; /* FIXME: implement */
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_pes_t *this;
- if (iface != 10) {
- printf (_("demux_pes: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = xine_xmalloc (sizeof (demux_pes_t));
this->config = xine->config;
this->xine = xine;
@@ -633,3 +625,13 @@ static void *init_demuxer_plugin(int iface, xine_t *xine) {
return (demux_plugin_t *) this;
}
+
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "mpeg-pes", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_roq.c b/src/demuxers/demux_roq.c
index 7f398b7a6..5e90198c6 100644
--- a/src/demuxers/demux_roq.c
+++ b/src/demuxers/demux_roq.c
@@ -21,7 +21,7 @@
* For more information regarding the RoQ file format, visit:
* http://www.csse.monash.edu.au/~timf/
*
- * $Id: demux_roq.c,v 1.13 2002/09/05 22:18:52 mroi Exp $
+ * $Id: demux_roq.c,v 1.14 2002/09/10 15:07:14 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -524,17 +524,9 @@ static char *demux_roq_get_mimetypes(void) {
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_roq_t *this;
- if (iface != 10) {
- printf (_("demux_roq: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = (demux_roq_t *) xine_xmalloc(sizeof(demux_roq_t));
this->config = xine->config;
this->xine = xine;
@@ -560,3 +552,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, "roq", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
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 }
+};
diff --git a/src/demuxers/demux_snd.c b/src/demuxers/demux_snd.c
index b2a50b710..59b02cbc3 100644
--- a/src/demuxers/demux_snd.c
+++ b/src/demuxers/demux_snd.c
@@ -19,7 +19,7 @@
*
* SND/AU File Demuxer by Mike Melanson (melanson@pcisys.net)
*
- * $Id: demux_snd.c,v 1.5 2002/09/05 22:18:53 mroi Exp $
+ * $Id: demux_snd.c,v 1.6 2002/09/10 15:07:14 mroi Exp $
*
*/
@@ -460,18 +460,10 @@ static int demux_snd_get_stream_length (demux_plugin_t *this_gen) {
return this->running_time;
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_snd_t *this;
- if (iface != 10) {
- printf (_("demux_snd: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = xine_xmalloc (sizeof (demux_snd_t));
this->config = xine->config;
this->xine = xine;
@@ -496,3 +488,13 @@ static void *init_demuxer_plugin(int iface, xine_t *xine) {
return (demux_plugin_t *) this;
}
+
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "snd", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_ts.c b/src/demuxers/demux_ts.c
index 5d9a01547..5d5b19b46 100644
--- a/src/demuxers/demux_ts.c
+++ b/src/demuxers/demux_ts.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_ts.c,v 1.55 2002/09/05 22:18:53 mroi Exp $
+ * $Id: demux_ts.c,v 1.56 2002/09/10 15:07:14 mroi Exp $
*
* Demultiplexer for MPEG2 Transport Streams.
*
@@ -1652,21 +1652,11 @@ static int demux_ts_get_stream_length (demux_plugin_t *this_gen) {
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_ts *this;
int i;
- if (iface != 10) {
- LOG_MSG (xine,
- _("demux_ts: plugin doesn't support plugin API version %d.\n"
- " This means there's a version mismatch between xine "
- "and this demuxer plugin.\n"
- " Installing current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
/*
* Initialise the generic plugin.
*/
@@ -1728,3 +1718,13 @@ static void *init_demuxer_plugin(int iface, xine_t *xine) {
return (demux_plugin_t *)this;
}
+
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "mpeg-ts", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_voc.c b/src/demuxers/demux_voc.c
index 1f5bd88a3..9448cae4c 100644
--- a/src/demuxers/demux_voc.c
+++ b/src/demuxers/demux_voc.c
@@ -23,7 +23,7 @@
* It will only play that block if it is PCM data. More variations will be
* supported as they are encountered.
*
- * $Id: demux_voc.c,v 1.5 2002/09/05 22:18:53 mroi Exp $
+ * $Id: demux_voc.c,v 1.6 2002/09/10 15:07:14 mroi Exp $
*
*/
@@ -452,18 +452,10 @@ static int demux_voc_get_stream_length (demux_plugin_t *this_gen) {
return this->running_time;
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_voc_t *this;
- if (iface != 10) {
- printf (_("demux_voc: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = xine_xmalloc (sizeof (demux_voc_t));
this->config = xine->config;
this->xine = xine;
@@ -489,3 +481,12 @@ static void *init_demuxer_plugin(int iface, xine_t *xine) {
return (demux_plugin_t *) this;
}
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "voc", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_vqa.c b/src/demuxers/demux_vqa.c
index b8ea41078..e6599a80b 100644
--- a/src/demuxers/demux_vqa.c
+++ b/src/demuxers/demux_vqa.c
@@ -21,7 +21,7 @@
* For more information regarding the VQA file format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_vqa.c,v 1.5 2002/09/05 22:18:53 mroi Exp $
+ * $Id: demux_vqa.c,v 1.6 2002/09/10 15:07:14 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -550,17 +550,9 @@ static char *demux_vqa_get_mimetypes(void) {
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_vqa_t *this;
- if (iface != 10) {
- printf (_("demux_vqa: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = (demux_vqa_t *) xine_xmalloc(sizeof(demux_vqa_t));
this->config = xine->config;
this->xine = xine;
@@ -586,3 +578,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, "vqa", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_wav.c b/src/demuxers/demux_wav.c
index 020d4a8a0..9a9cafd07 100644
--- a/src/demuxers/demux_wav.c
+++ b/src/demuxers/demux_wav.c
@@ -20,7 +20,7 @@
* MS WAV File Demuxer by Mike Melanson (melanson@pcisys.net)
* based on WAV specs that are available far and wide
*
- * $Id: demux_wav.c,v 1.11 2002/09/05 22:18:53 mroi Exp $
+ * $Id: demux_wav.c,v 1.12 2002/09/10 15:07:14 mroi Exp $
*
*/
@@ -461,18 +461,10 @@ static int demux_wav_get_stream_length (demux_plugin_t *this_gen) {
return (int)(this->data_size / this->wave->nAvgBytesPerSec);
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_wav_t *this;
- if (iface != 10) {
- printf (_("demux_wav: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = xine_xmalloc (sizeof (demux_wav_t));
this->config = xine->config;
this->xine = xine;
@@ -497,3 +489,13 @@ static void *init_demuxer_plugin(int iface, xine_t *xine) {
return (demux_plugin_t *) this;
}
+
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "wav", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
diff --git a/src/demuxers/demux_wc3movie.c b/src/demuxers/demux_wc3movie.c
index 5d1f1cd14..513592dca 100644
--- a/src/demuxers/demux_wc3movie.c
+++ b/src/demuxers/demux_wc3movie.c
@@ -22,7 +22,7 @@
* For more information on the MVE file format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_wc3movie.c,v 1.6 2002/09/05 22:18:53 mroi Exp $
+ * $Id: demux_wc3movie.c,v 1.7 2002/09/10 15:07:14 mroi Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -591,17 +591,9 @@ static char *demux_mve_get_mimetypes(void) {
}
-static void *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin(xine_t *xine, void *data) {
demux_mve_t *this;
- if (iface != 10) {
- printf (_("demux_wc3movie: plugin doesn't support plugin API version %d.\n"
- " this means there's a version mismatch between xine and this "
- " demuxer plugin.\nInstalling current demux plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = (demux_mve_t *) xine_xmalloc(sizeof(demux_mve_t));
this->config = xine->config;
this->xine = xine;
@@ -626,3 +618,13 @@ 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, "wc3movie", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};