summaryrefslogtreecommitdiff
path: root/src/input/input_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/input_file.c')
-rw-r--r--src/input/input_file.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/input/input_file.c b/src/input/input_file.c
index f8be3e342..bf104087e 100644
--- a/src/input/input_file.c
+++ b/src/input/input_file.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: input_file.c,v 1.25 2001/10/08 18:06:34 jkeil Exp $
+ * $Id: input_file.c,v 1.26 2001/10/17 20:33:09 guenter Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -735,12 +735,12 @@ static int file_plugin_get_optional_data (input_plugin_t *this_gen,
/*
*
*/
-input_plugin_t *init_input_plugin (int iface, config_values_t *config) {
- file_input_plugin_t *this;
+input_plugin_t *init_input_plugin (int iface, xine_t *xine) {
- xine_debug = config->lookup_int (config, "xine_debug", 0);
+ file_input_plugin_t *this;
+ config_values_t *config;
- if (iface != 3) {
+ if (iface != 4) {
printf("file 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"
@@ -749,8 +749,10 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) {
return NULL;
}
- this = (file_input_plugin_t *) xmalloc (sizeof (file_input_plugin_t));
-
+ this = (file_input_plugin_t *) xmalloc (sizeof (file_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 = file_plugin_get_capabilities;
this->input_plugin.open = file_plugin_open;