summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_real.c
diff options
context:
space:
mode:
authorMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-12-21 12:56:44 +0000
committerMiguel Freitas <miguelfreitas@users.sourceforge.net>2002-12-21 12:56:44 +0000
commit5f31761a4fa6995592cdd536c52f6ddac8151a89 (patch)
treeaeec46d8f80b411df280cc2cc6bc124c2dbd6756 /src/demuxers/demux_real.c
parenteafb4f823a16426e7b2b30ada1b3cca47d8eeb3c (diff)
downloadxine-lib-5f31761a4fa6995592cdd536c52f6ddac8151a89.tar.gz
xine-lib-5f31761a4fa6995592cdd536c52f6ddac8151a89.tar.bz2
- add buf->decoder_info_ptr: portability for systems where pointer has
different sizeof than integer. - add extra_info structure to pass informations from input/demuxers down to the output frame. this can be used, for example, to pass the frame number of a frame (when known by decoder). also, immediate benefict is that we now have a slider which really shows the current position of the playing stream. new fields can be added to extra_info keeping binary compatibility - bumpy everybody's api versions CVS patchset: 3603 CVS date: 2002/12/21 12:56:44
Diffstat (limited to 'src/demuxers/demux_real.c')
-rw-r--r--src/demuxers/demux_real.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c
index eae1aa960..7ee6201d3 100644
--- a/src/demuxers/demux_real.c
+++ b/src/demuxers/demux_real.c
@@ -21,7 +21,7 @@
* For more information regarding the Real file format, visit:
* http://www.pcisys.net/~melanson/codecs/
*
- * $Id: demux_real.c,v 1.26 2002/12/15 21:23:39 guenter Exp $
+ * $Id: demux_real.c,v 1.27 2002/12/21 12:56:45 miguelfreitas Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -434,8 +434,8 @@ static void real_parse_headers (demux_real_t *this) {
buf->size = mdpr->type_specific_len-off;
- buf->input_pos = 0 ;
- buf->input_time = 0 ;
+ buf->extra_info->input_pos = 0 ;
+ buf->extra_info->input_time = 0 ;
buf->type = this->audio_buf_type;
buf->decoder_flags = BUF_FLAG_HEADER;
@@ -486,8 +486,8 @@ static void real_parse_headers (demux_real_t *this) {
buf->size = mdpr->type_specific_len;
- buf->input_pos = 0 ;
- buf->input_time = 0 ;
+ buf->extra_info->input_pos = 0 ;
+ buf->extra_info->input_time = 0 ;
buf->type = BUF_VIDEO_RV20;
buf->decoder_flags = BUF_FLAG_HEADER;
@@ -517,8 +517,8 @@ static void real_parse_headers (demux_real_t *this) {
buf->size = mdpr->type_specific_len;
- buf->input_pos = 0 ;
- buf->input_time = 0 ;
+ buf->extra_info->input_pos = 0 ;
+ buf->extra_info->input_time = 0 ;
buf->type = BUF_VIDEO_RV30;
buf->decoder_flags = BUF_FLAG_HEADER;
@@ -791,9 +791,9 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) {
buf->content = buf->mem;
buf->pts = pts;
- buf->input_pos = this->input->get_current_pos (this->input);
+ buf->extra_info->input_pos = this->input->get_current_pos (this->input);
- buf->input_time = buf->input_pos * 8 / this->avg_bitrate ;
+ buf->extra_info->input_time = buf->extra_info->input_pos * 8 / this->avg_bitrate ;
buf->type = this->video_buf_type;
check_newpts (this, pts, PTS_VIDEO, 0);
@@ -872,8 +872,8 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) {
buf->content = buf->mem;
buf->pts = pts;
- buf->input_pos = this->input->get_current_pos (this->input);
- buf->input_time = buf->input_pos * 8 / this->avg_bitrate ;
+ buf->extra_info->input_pos = this->input->get_current_pos (this->input);
+ buf->extra_info->input_time = buf->extra_info->input_pos * 8 / this->avg_bitrate ;
buf->type = this->audio_buf_type;
buf->decoder_flags = 0;
buf->size = size;
@@ -1194,6 +1194,6 @@ static void *init_class (xine_t *xine, void *data) {
plugin_info_t xine_plugin_info[] = {
/* type, API, "name", version, special_info, init_function */
- { PLUGIN_DEMUX, 18, "real", XINE_VERSION_CODE, NULL, init_class },
+ { PLUGIN_DEMUX, 19, "real", XINE_VERSION_CODE, NULL, init_class },
{ PLUGIN_NONE, 0, "", 0, NULL, NULL }
};