summaryrefslogtreecommitdiff
path: root/src/demuxers/demux.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-04-09 03:37:59 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-04-09 03:37:59 +0000
commit645f84663db1951293a7c821dccba45ebdabfcfe (patch)
tree25921d66b1107950db591aa98e2086623c5e83cd /src/demuxers/demux.h
parent28fd212fe15c240f337575a12057d3468e5ee05d (diff)
downloadxine-lib-645f84663db1951293a7c821dccba45ebdabfcfe.tar.gz
xine-lib-645f84663db1951293a7c821dccba45ebdabfcfe.tar.bz2
- new (fast) demuxer seeking scheme
- updated decoder api to allow reseting internal state on seeks CVS patchset: 1696 CVS date: 2002/04/09 03:37:59
Diffstat (limited to 'src/demuxers/demux.h')
-rw-r--r--src/demuxers/demux.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/demuxers/demux.h b/src/demuxers/demux.h
index a8228cd1b..8f7d9b480 100644
--- a/src/demuxers/demux.h
+++ b/src/demuxers/demux.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: demux.h,v 1.12 2001/10/25 00:46:58 miguelfreitas Exp $
+ * $Id: demux.h,v 1.13 2002/04/09 03:37:59 miguelfreitas Exp $
*/
#ifndef HAVE_DEMUX_H
@@ -35,7 +35,7 @@ extern "C" {
#include "input_plugin.h"
#endif
-#define DEMUXER_PLUGIN_IFACE_VERSION 6
+#define DEMUXER_PLUGIN_IFACE_VERSION 7
#define DEMUX_OK 0
#define DEMUX_FINISHED 1
@@ -91,6 +91,21 @@ struct demux_plugin_s
void (*start) (demux_plugin_t *this, fifo_buffer_t *video_fifo,
fifo_buffer_t *audio_fifo,
off_t start_pos, int start_time);
+
+ /*
+ * ask running demux thread to seek
+ *
+ * for seekable streams, a start position can be specified
+ *
+ * start_pos : position in input source
+ * start_time : position measured in seconds from stream start
+ *
+ * if both parameters are !=0 start_pos will be used
+ * for non-seekable streams both values will be ignored
+ */
+
+ void (*seek) (demux_plugin_t *this,
+ off_t start_pos, int start_time);
/*
* stop & kill demux thread, free resources associated with current