From a0eefaaee68440f3d798c1146ac2f4fcd79982a4 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Wed, 17 Oct 2001 20:33:09 +0000 Subject: demux / input plugin interface change, init functions now have access to the full xine_t *xine. This should enable stream plugins to register SCR plugins. WARNING: delete old input plugins, otherwise xine will crash CVS patchset: 823 CVS date: 2001/10/17 20:33:09 --- src/input/input_net.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/input/input_net.c') diff --git a/src/input/input_net.c b/src/input/input_net.c index 6266fd305..af74335cd 100644 --- a/src/input/input_net.c +++ b/src/input/input_net.c @@ -296,13 +296,12 @@ static int net_plugin_get_optional_data (input_plugin_t *this_gen, /* * */ -input_plugin_t *init_input_plugin (int iface, config_values_t *config) { +input_plugin_t *init_input_plugin (int iface, xine_t *xine) { net_input_plugin_t *this; + config_values_t *config; - xine_debug = config->lookup_int (config, "xine_debug", 0); - - if (iface != 3) { + if (iface != 4) { printf("net input plugin doesn't support plugin API version %d.\n" "PLUGIN DISABLED.\n" "This means there's a version mismatch between xine and this input" @@ -311,8 +310,10 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { return NULL; } - this = (net_input_plugin_t *) xmalloc(sizeof(net_input_plugin_t)); - + this = (net_input_plugin_t *) xmalloc(sizeof(net_input_plugin_t)); + config = xine->config; + xine_debug = config->lookup_int (config, "xine_debug", 0); + this->input_plugin.interface_version = INPUT_PLUGIN_IFACE_VERSION; this->input_plugin.get_capabilities = net_plugin_get_capabilities; this->input_plugin.open = net_plugin_open; -- cgit v1.2.3