diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-17 20:33:09 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2001-10-17 20:33:09 +0000 |
commit | a0eefaaee68440f3d798c1146ac2f4fcd79982a4 (patch) | |
tree | 70058a0f49b8a15010c92464124e89ecfe41aabf /src/input/input_dvd.c | |
parent | adadd9b06d2ef9df5d82bee0e7049b29322ff9f1 (diff) | |
download | xine-lib-a0eefaaee68440f3d798c1146ac2f4fcd79982a4.tar.gz xine-lib-a0eefaaee68440f3d798c1146ac2f4fcd79982a4.tar.bz2 |
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
Diffstat (limited to 'src/input/input_dvd.c')
-rw-r--r-- | src/input/input_dvd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index 28c20ded7..918c9aa1a 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.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_dvd.c,v 1.32 2001/10/08 18:06:34 jkeil Exp $ + * $Id: input_dvd.c,v 1.33 2001/10/17 20:33:09 guenter Exp $ */ #ifdef HAVE_CONFIG_H @@ -732,14 +732,13 @@ static int dvd_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) { dvd_input_plugin_t *this; + config_values_t *config; int i; - xine_debug = config->lookup_int (config, "xine_debug", 0); - - if (iface != 3) { + if (iface != 4) { printf("dvd 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" @@ -747,9 +746,10 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { iface); return NULL; } - - this = (dvd_input_plugin_t *) xmalloc (sizeof (dvd_input_plugin_t)); + this = (dvd_input_plugin_t *) xmalloc (sizeof (dvd_input_plugin_t)); + config = xine->config; + xine_debug = config->lookup_int (config, "xine_debug", 0); for (i = 0; i < MAX_DIR_ENTRIES; i++) { this->filelist[i] = (char *) xmalloc (256); |