summaryrefslogtreecommitdiff
path: root/src/xine-engine/buffer.h
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-15 14:54:30 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2003-11-15 14:54:30 +0000
commit1ace1c3f18fb48bab32a2ee5b69ae6e3bce12850 (patch)
tree21c51a97dcc8659809d2c8df9f5ce363bddadb2d /src/xine-engine/buffer.h
parent443d766f9506dfcc19de9c8fc224a61a0922f722 (diff)
downloadxine-lib-1ace1c3f18fb48bab32a2ee5b69ae6e3bce12850.tar.gz
xine-lib-1ace1c3f18fb48bab32a2ee5b69ae6e3bce12850.tar.bz2
start xine_stream_t separation (public/private).
(we should finish this before rc3.) - stream_info and meta_info variables are private now. obs: everything must be recompiled due xine_stream_t changes CVS patchset: 5733 CVS date: 2003/11/15 14:54:30
Diffstat (limited to 'src/xine-engine/buffer.h')
-rw-r--r--src/xine-engine/buffer.h27
1 files changed, 22 insertions, 5 deletions
diff --git a/src/xine-engine/buffer.h b/src/xine-engine/buffer.h
index 7d62be4ee..3ea47375b 100644
--- a/src/xine-engine/buffer.h
+++ b/src/xine-engine/buffer.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: buffer.h,v 1.123 2003/11/11 18:45:00 f1rmb Exp $
+ * $Id: buffer.h,v 1.124 2003/11/15 14:54:31 miguelfreitas Exp $
*
*
* contents:
@@ -227,11 +227,28 @@ extern "C" {
#define BUF_DEMUX_BLOCK 0x05000000
-/* to access extra_info_t contents one have to include xine_internal.h */
-#ifndef EXTRA_INFO
-#define EXTRA_INFO
typedef struct extra_info_s extra_info_t;
-#endif
+
+/*
+ * extra_info_t is used to pass information from input or demuxer plugins
+ * to output frames (past decoder). new data must be added after the existing
+ * fields for backward compatibility.
+ */
+
+struct extra_info_s {
+
+ off_t input_pos; /* remember where this buf came from in the input source */
+ off_t input_length; /* remember the length of the input source */
+ int input_time;/* time offset in miliseconds from beginning of stream */
+ uint32_t frame_number; /* number of current frame if known */
+
+ int seek_count; /* internal engine use */
+ int64_t vpts; /* set on output layers only */
+
+ int invalid; /* do not use this extra info to update anything */
+ int total_time; /* duration in miliseconds of the stream */
+};
+
#define BUF_NUM_DEC_INFO 4