summaryrefslogtreecommitdiff
path: root/src/input/input_file.c
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-08-17 16:15:36 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2001-08-17 16:15:36 +0000
commit31f9517d0a924c20dae8b9c6d5cc839c48b0311a (patch)
treec145ac68c73ccf9c2b2ea212177aa10a4d05bd93 /src/input/input_file.c
parente48313f4507bd8c37b31ac0ccd7fe74128c7b6ed (diff)
downloadxine-lib-31f9517d0a924c20dae8b9c6d5cc839c48b0311a.tar.gz
xine-lib-31f9517d0a924c20dae8b9c6d5cc839c48b0311a.tar.bz2
Add xine_seek() and friends.
CVS patchset: 446 CVS date: 2001/08/17 16:15:36
Diffstat (limited to 'src/input/input_file.c')
-rw-r--r--src/input/input_file.c14
1 files changed, 12 insertions, 2 deletions
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
@@ -678,6 +678,15 @@ static void file_plugin_close (input_plugin_t *this_gen) {
/*
*
*/
+static void file_plugin_stop (input_plugin_t *this_gen) {
+
+ xprintf (VERBOSE|INPUT, "stopping input\n");
+ file_plugin_close(this_gen);
+}
+
+/*
+ *
+ */
static char *file_plugin_get_description (input_plugin_t *this_gen) {
return "plain file input plugin as shipped with xine";
}
@@ -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;