diff options
Diffstat (limited to 'src/input/input_stdin_fifo.c')
-rw-r--r-- | src/input/input_stdin_fifo.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/input/input_stdin_fifo.c b/src/input/input_stdin_fifo.c index 57abf7005..b13271833 100644 --- a/src/input/input_stdin_fifo.c +++ b/src/input/input_stdin_fifo.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_stdin_fifo.c,v 1.13 2001/10/05 17:36:28 jkeil Exp $ + * $Id: input_stdin_fifo.c,v 1.14 2001/10/17 20:33:09 guenter Exp $ */ #ifdef HAVE_CONFIG_H @@ -251,13 +251,12 @@ static int stdin_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) { stdin_input_plugin_t *this; + config_values_t *config; - xine_debug = config->lookup_int (config, "xine_debug", 0); - - if (iface != 3) { + if (iface != 4) { printf("rtp 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" @@ -266,8 +265,10 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { return NULL; } - this = (stdin_input_plugin_t *) xmalloc(sizeof(stdin_input_plugin_t)); - + this = (stdin_input_plugin_t *) xmalloc(sizeof(stdin_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 = stdin_plugin_get_capabilities; this->input_plugin.open = stdin_plugin_open; |