summaryrefslogtreecommitdiff
path: root/src/xine-engine/audio_decoder.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/xine-engine/audio_decoder.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/xine-engine/audio_decoder.c')
-rw-r--r--src/xine-engine/audio_decoder.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c
index 4b3cbb848..50d1e47a9 100644
--- a/src/xine-engine/audio_decoder.c
+++ b/src/xine-engine/audio_decoder.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: audio_decoder.c,v 1.92 2002/12/18 03:59:10 guenter Exp $
+ * $Id: audio_decoder.c,v 1.93 2002/12/21 12:56:51 miguelfreitas Exp $
*
*
* functions that implement audio decoding
@@ -65,13 +65,7 @@ void *audio_decoder_loop (void *stream_gen) {
buf->pts, buf->type);
#endif
- if (buf->input_pos)
- stream->input_pos = buf->input_pos;
- if (buf->input_length)
- stream->input_length = buf->input_length;
- if (buf->input_time) {
- stream->input_time = buf->input_time;
- }
+ extra_info_merge( stream->audio_decoder_extra_info, buf->extra_info );
switch (buf->type) {
@@ -155,6 +149,7 @@ void *audio_decoder_loop (void *stream_gen) {
#ifdef LOG
printf ("audio_decoder: reset\n");
#endif
+ extra_info_reset( stream->audio_decoder_extra_info );
if (stream->audio_decoder_plugin)
stream->audio_decoder_plugin->reset (stream->audio_decoder_plugin);
break;