summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_wav.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_wav.c')
-rw-r--r--src/demuxers/demux_wav.c22
1 files changed, 12 insertions, 10 deletions
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 }
+};