summaryrefslogtreecommitdiff
path: root/src/input/input_plugin.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-10-14 21:02:16 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2005-10-14 21:02:16 +0000
commit8e323392d562170c64b5f1acd8b786c4a4a1e161 (patch)
tree143fbcd4604af5fc66b5bc13cf6ed9d8dff73341 /src/input/input_plugin.h
parent6e8c0b93f15a594e8218db242b060f1b616539e1 (diff)
downloadxine-lib-8e323392d562170c64b5f1acd8b786c4a4a1e161.tar.gz
xine-lib-8e323392d562170c64b5f1acd8b786c4a4a1e161.tar.bz2
input plugin time seeking patch.
hopefuly somebody will be able to help fixing the mess i did in dvdnav ;) CVS patchset: 7759 CVS date: 2005/10/14 21:02:16
Diffstat (limited to 'src/input/input_plugin.h')
-rw-r--r--src/input/input_plugin.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/src/input/input_plugin.h b/src/input/input_plugin.h
index 6b72640dc..2e9f0dca6 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.59 2005/02/06 15:00:34 tmattern Exp $
+ * $Id: input_plugin.h,v 1.60 2005/10/14 21:02:16 miguelfreitas Exp $
*/
#ifndef HAVE_INPUT_PLUGIN_H
@@ -37,7 +37,7 @@
# include <xine/configfile.h>
#endif
-#define INPUT_PLUGIN_IFACE_VERSION 16
+#define INPUT_PLUGIN_IFACE_VERSION 17
typedef struct input_class_s input_class_t ;
typedef struct input_plugin_s input_plugin_t;
@@ -136,11 +136,31 @@ struct input_plugin_s {
/*
+ * seek to time position, return new position
+ * time_offset is given in miliseconds
+ *
+ * if seeking failed, -1 is returned
+ *
+ * note: only SEEK_SET (0) is currently supported as origin
+ * note: may be NULL is not supported
+ */
+ off_t (*seek_time) (input_plugin_t *this, int time_offset, int origin);
+
+
+ /*
* get current position in stream.
*
*/
off_t (*get_current_pos) (input_plugin_t *this);
+
+ /*
+ * get current time position in stream in miliseconds.
+ *
+ * note: may be NULL is not supported
+ */
+ int (*get_current_time) (input_plugin_t *this);
+
/*
* return number of bytes in the next playable entity or -1 if the