summaryrefslogtreecommitdiff
path: root/src/demuxers
diff options
context:
space:
mode:
authorStefan Holst <holstsn@users.sourceforge.net>2002-12-22 16:46:27 +0000
committerStefan Holst <holstsn@users.sourceforge.net>2002-12-22 16:46:27 +0000
commit2e5dbb009fc1debba15656948e0f060702f30ba5 (patch)
tree51b41244c7732710d1b27485a3127ed1e079fbf9 /src/demuxers
parent02402d72d1d7b4f4315e9d1f9703c4f76909aaac (diff)
downloadxine-lib-2e5dbb009fc1debba15656948e0f060702f30ba5.tar.gz
xine-lib-2e5dbb009fc1debba15656948e0f060702f30ba5.tar.bz2
fixes handling of some real streams and adds some log output
CVS patchset: 3632 CVS date: 2002/12/22 16:46:27
Diffstat (limited to 'src/demuxers')
-rw-r--r--src/demuxers/demux_real.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c
index 7ee6201d3..71243ee55 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.27 2002/12/21 12:56:45 miguelfreitas Exp $
+ * $Id: demux_real.c,v 1.28 2002/12/22 16:46:27 holstsn Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -598,6 +598,9 @@ static void real_parse_headers (demux_real_t *this) {
default:
/* this should not occur, but in case it does, skip the chunk */
+#ifdef LOG
+ printf("demux_real: skipping a chunk!\n");
+#endif
this->input->seek(this->input, chunk_size - PREAMBLE_SIZE, SEEK_CUR);
break;
@@ -868,6 +871,10 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) {
buf_element_t *buf;
int n;
+#ifdef LOG
+ printf ("demux_real: audio chunk detected.\n");
+#endif
+
buf = this->audio_fifo->buffer_pool_alloc (this->audio_fifo);
buf->content = buf->mem;
@@ -897,7 +904,9 @@ static int demux_real_send_chunk(demux_plugin_t *this_gen) {
} else {
/* discard */
-
+#ifdef LOG
+ printf ("demux_real: chunk not detected; discarding.\n");
+#endif
this->input->seek(this->input, size, SEEK_CUR);
}