diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-08-17 16:15:36 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2001-08-17 16:15:36 +0000 |
commit | 31f9517d0a924c20dae8b9c6d5cc839c48b0311a (patch) | |
tree | c145ac68c73ccf9c2b2ea212177aa10a4d05bd93 /src/input | |
parent | e48313f4507bd8c37b31ac0ccd7fe74128c7b6ed (diff) | |
download | xine-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')
-rw-r--r-- | src/input/input_dvd.c | 14 | ||||
-rw-r--r-- | src/input/input_file.c | 14 | ||||
-rw-r--r-- | src/input/input_net.c | 11 | ||||
-rw-r--r-- | src/input/input_plugin.h | 10 | ||||
-rw-r--r-- | src/input/input_rtp.c | 10 | ||||
-rw-r--r-- | src/input/input_stdin_fifo.c | 12 | ||||
-rw-r--r-- | src/input/input_vcd.c | 12 |
7 files changed, 70 insertions, 13 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index c8dbadc6f..bc31976c7 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.18 2001/07/28 13:23:24 guenter Exp $ + * $Id: input_dvd.c,v 1.19 2001/08/17 16:15:36 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -408,6 +408,13 @@ static void dvd_plugin_close (input_plugin_t *this_gen) { /* * */ +static void dvd_plugin_stop (input_plugin_t *this_gen) { + dvd_plugin_close(this_gen); +} + +/* + * + */ static char *dvd_plugin_get_description (input_plugin_t *this_gen) { return "dvd device input plugin as shipped with xine"; @@ -599,8 +606,8 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { xine_debug = config->lookup_int (config, "xine_debug", 0); - if (iface != 2) { - printf("vcd input plugin doesn't support plugin API version %d.\n" + if (iface != 3) { + 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" "plugin.\nInstalling current input plugins should help.\n", @@ -627,6 +634,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { this->input_plugin.get_blocksize = dvd_plugin_get_blocksize; this->input_plugin.eject_media = dvd_plugin_eject_media; this->input_plugin.close = dvd_plugin_close; + this->input_plugin.stop = dvd_plugin_stop; this->input_plugin.get_identifier = dvd_plugin_get_identifier; this->input_plugin.get_description = dvd_plugin_get_description; this->input_plugin.get_dir = dvd_plugin_get_dir; 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; diff --git a/src/input/input_net.c b/src/input/input_net.c index 3d0e6170b..e6cd76f14 100644 --- a/src/input/input_net.c +++ b/src/input/input_net.c @@ -255,6 +255,14 @@ static void net_plugin_close (input_plugin_t *this_gen) { /* * */ +static void net_plugin_stop (input_plugin_t *this_gen) { + + net_plugin_close(this_gen); +} + +/* + * + */ static char *net_plugin_get_description (input_plugin_t *this_gen) { return "net input plugin as shipped with xine"; } @@ -293,7 +301,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("net 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" @@ -317,6 +325,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { this->input_plugin.eject_media = net_plugin_eject_media; this->input_plugin.get_mrl = net_plugin_get_mrl; this->input_plugin.close = net_plugin_close; + this->input_plugin.stop = net_plugin_stop; this->input_plugin.get_description = net_plugin_get_description; this->input_plugin.get_identifier = net_plugin_get_identifier; this->input_plugin.get_autoplay_list = NULL; diff --git a/src/input/input_plugin.h b/src/input/input_plugin.h index fa4e0a656..c6aa19131 100644 --- a/src/input/input_plugin.h +++ b/src/input/input_plugin.h @@ -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_plugin.h,v 1.11 2001/08/16 12:33:00 ehasenle Exp $ + * $Id: input_plugin.h,v 1.12 2001/08/17 16:15:36 f1rmb Exp $ */ #ifndef HAVE_INPUT_PLUGIN_H @@ -33,7 +33,7 @@ extern "C" { #include "buffer.h" #include "configfile.h" -#define INPUT_PLUGIN_IFACE_VERSION 2 +#define INPUT_PLUGIN_IFACE_VERSION 3 /* * Return pointer of allocate/cleaned memory size *size*. @@ -234,6 +234,12 @@ struct input_plugin_s /* + * stop input source + */ + void (*stop) (input_plugin_t *this); + + + /* * close input source */ void (*close) (input_plugin_t *this); diff --git a/src/input/input_rtp.c b/src/input/input_rtp.c index b18082609..31dcf403d 100644 --- a/src/input/input_rtp.c +++ b/src/input/input_rtp.c @@ -401,6 +401,13 @@ static void rtp_plugin_close (input_plugin_t *this_gen) { /* * */ +static void rtp_plugin_stop (input_plugin_t *this_gen) { + rtp_plugin_stop(this_gen); +} + +/* + * + */ static int rtp_plugin_eject_media (input_plugin_t *this_gen) { return 1; @@ -450,7 +457,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("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" @@ -488,6 +495,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { this->input_plugin.get_blocksize = rtp_plugin_get_blocksize; this->input_plugin.eject_media = rtp_plugin_eject_media; this->input_plugin.close = rtp_plugin_close; + this->input_plugin.stop = rtp_plugin_stop; this->input_plugin.get_identifier = rtp_plugin_get_identifier; this->input_plugin.get_description = rtp_plugin_get_description; this->input_plugin.get_dir = NULL; diff --git a/src/input/input_stdin_fifo.c b/src/input/input_stdin_fifo.c index 98f0c7c34..5a47c870b 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.10 2001/07/27 22:00:27 f1rmb Exp $ + * $Id: input_stdin_fifo.c,v 1.11 2001/08/17 16:15:36 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -220,6 +220,13 @@ static void stdin_plugin_close(input_plugin_t *this_gen) { /* * */ +static void stdin_plugin_stop(input_plugin_t *this_gen) { + stdin_plugin_close(this_gen); +} + +/* + * + */ static char *stdin_plugin_get_description (input_plugin_t *this_gen) { return "stdin/fifo input plugin as shipped with xine"; } @@ -249,7 +256,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("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" @@ -273,6 +280,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { this->input_plugin.eject_media = stdin_plugin_eject_media; this->input_plugin.get_mrl = stdin_plugin_get_mrl; this->input_plugin.close = stdin_plugin_close; + this->input_plugin.stop = stdin_plugin_stop; this->input_plugin.get_description = stdin_plugin_get_description; this->input_plugin.get_identifier = stdin_plugin_get_identifier; this->input_plugin.get_autoplay_list = NULL; diff --git a/src/input/input_vcd.c b/src/input/input_vcd.c index 27142decc..657f013f7 100644 --- a/src/input/input_vcd.c +++ b/src/input/input_vcd.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_vcd.c,v 1.18 2001/07/27 22:00:27 f1rmb Exp $ + * $Id: input_vcd.c,v 1.19 2001/08/17 16:15:36 f1rmb Exp $ */ #ifdef HAVE_CONFIG_H @@ -908,6 +908,13 @@ static void vcd_plugin_close (input_plugin_t *this_gen) { /* * */ +static void vcd_plugin_stop (input_plugin_t *this_gen) { + vcd_plugin_close(this_gen); +} + +/* + * + */ static char *vcd_plugin_get_description (input_plugin_t *this_gen) { return "plain file input plugin as shipped with xine"; } @@ -1077,7 +1084,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("vcd 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" @@ -1103,6 +1110,7 @@ input_plugin_t *init_input_plugin (int iface, config_values_t *config) { this->input_plugin.get_blocksize = vcd_plugin_get_blocksize; this->input_plugin.eject_media = vcd_plugin_eject_media; this->input_plugin.close = vcd_plugin_close; + this->input_plugin.stop = vcd_plugin_stop; this->input_plugin.get_identifier = vcd_plugin_get_identifier; this->input_plugin.get_description = vcd_plugin_get_description; this->input_plugin.get_dir = vcd_plugin_get_dir; |