summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_avi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_avi.c')
-rw-r--r--src/demuxers/demux_avi.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c
index 440ec0bcb..52b3f06cf 100644
--- a/src/demuxers/demux_avi.c
+++ b/src/demuxers/demux_avi.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_avi.c,v 1.44 2001/10/07 22:11:22 guenter Exp $
+ * $Id: demux_avi.c,v 1.45 2001/10/17 20:33:09 guenter Exp $
*
* demultiplexer for avi streams
*
@@ -1195,11 +1195,12 @@ static int demux_avi_get_stream_length (demux_plugin_t *this_gen) {
return 0;
}
-demux_plugin_t *init_demuxer_plugin(int iface, config_values_t *config) {
+demux_plugin_t *init_demuxer_plugin(int iface, xine_t *xine) {
- demux_avi_t *this;
+ demux_avi_t *this;
+ config_values_t *config;
- if (iface != 3) {
+ if (iface != 4) {
printf( "demux_avi: this plugin doesn't support plugin API version %d.\n"
"demux_avi: this means there's a version mismatch between xine and this "
"demux_avi: demuxer plugin.\nInstalling current demuxer plugins should help.\n",
@@ -1207,7 +1208,8 @@ demux_plugin_t *init_demuxer_plugin(int iface, config_values_t *config) {
return NULL;
}
- this = xmalloc (sizeof (demux_avi_t));
+ this = xmalloc (sizeof (demux_avi_t));
+ config = xine->config;
xine_debug = config->lookup_int (config, "xine_debug", 0);
this->demux_plugin.interface_version = DEMUXER_PLUGIN_IFACE_VERSION;