From 31f9517d0a924c20dae8b9c6d5cc839c48b0311a Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Fri, 17 Aug 2001 16:15:36 +0000 Subject: Add xine_seek() and friends. CVS patchset: 446 CVS date: 2001/08/17 16:15:36 --- src/input/input_file.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/input/input_file.c') diff --git a/src/input/input_file.c b/src/input/input_file.c index be260f66e..434626367 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.17 2001/07/11 10:15:27 f1rmb Exp $ + * $Id: input_file.c,v 1.18 2001/08/17 16:15:36 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -675,6 +675,15 @@ static void file_plugin_close (input_plugin_t *this_gen) { this->fh = -1; } +/* + * + */ +static void file_plugin_stop (input_plugin_t *this_gen) { + + xprintf (VERBOSE|INPUT, "stopping input\n"); + file_plugin_close(this_gen); +} + /* * */ @@ -706,7 +715,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { xine_debug = config->lookup_int (config, "xine_debug", 0); - if (iface != 2) { + if (iface != 3) { 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" @@ -730,6 +739,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { this->input_plugin.eject_media = file_plugin_eject_media; this->input_plugin.get_mrl = file_plugin_get_mrl; this->input_plugin.close = file_plugin_close; + this->input_plugin.stop = file_plugin_stop; this->input_plugin.get_description = file_plugin_get_description; this->input_plugin.get_identifier = file_plugin_get_identifier; this->input_plugin.get_autoplay_list = NULL; -- cgit v1.2.3