summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_mpgaudio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_mpgaudio.c')
-rw-r--r--src/demuxers/demux_mpgaudio.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/demuxers/demux_mpgaudio.c b/src/demuxers/demux_mpgaudio.c
index 407c90602..ec9b8c02d 100644
--- a/src/demuxers/demux_mpgaudio.c
+++ b/src/demuxers/demux_mpgaudio.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_mpgaudio.c,v 1.58 2002/08/30 14:19:48 f1rmb Exp $
+ * $Id: demux_mpgaudio.c,v 1.59 2002/09/04 23:31:08 guenter Exp $
*
* demultiplexer for mpeg audio (i.e. mp3) streams
*
@@ -605,7 +605,7 @@ static int demux_mpgaudio_open(demux_plugin_t *this_gen,
xine_strdupa(valid_ends, (this->config->register_string(this->config,
"mrl.ends_mgaudio", VALID_ENDS,
_("valid mrls ending for mpeg audio demuxer"),
- NULL, NULL, NULL)));
+ NULL, 20, NULL, NULL)));
while((m = xine_strsep(&valid_ends, ",")) != NULL) {
while(*m == ' ' || *m == '\t') m++;
@@ -653,18 +653,10 @@ static int demux_mpgaudio_get_stream_length (demux_plugin_t *this_gen) {
}
-demux_plugin_t *init_demuxer_plugin(int iface, xine_t *xine) {
+static void *init_demuxer_plugin (xine_t *xine, void *data) {
demux_mpgaudio_t *this;
- if (iface != 10) {
- printf (_("demux_mpeg: 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_mpgaudio_t));
this->config = xine->config;
this->xine = xine;
@@ -672,7 +664,7 @@ demux_plugin_t *init_demuxer_plugin(int iface, xine_t *xine) {
(void*) this->config->register_string(this->config,
"mrl.ends_mgaudio", VALID_ENDS,
_("valid mrls ending for mpeg audio demuxer"),
- NULL, NULL, NULL);
+ NULL, 20, NULL, NULL);
this->demux_plugin.interface_version = DEMUX_MPGAUDIO_IFACE_VERSION;
this->demux_plugin.open = demux_mpgaudio_open;
@@ -688,5 +680,15 @@ demux_plugin_t *init_demuxer_plugin(int iface, xine_t *xine) {
this->status = DEMUX_FINISHED;
pthread_mutex_init( &this->mutex, NULL );
- return &this->demux_plugin;
+ return this;
}
+
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_DEMUX, 10, "mp3", XINE_VERSION_CODE, NULL, init_demuxer_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};